Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1816531imm; Wed, 16 May 2018 03:35:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZogoDvkIiN9DR7PMHZlv8sGFpTGwN4liMOnNoUkF+ZLK7DisC2LyS0tRgBFUw2fhPbNwfNP X-Received: by 2002:a17:902:d808:: with SMTP id a8-v6mr343467plz.177.1526466939879; Wed, 16 May 2018 03:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526466939; cv=none; d=google.com; s=arc-20160816; b=g7IwFkaMYOYvYHQL9bqxcxzUlnUCMVGNtELX9oEB/Nif2VzG0chsT0Xs0vXpO4ToWL mxjvvDvzL6ViPEHNPeP1eceadNZ4l40etqDuC0701A1e4D7r8wWnT0TUDJKNlpRpZFz1 WbwHAlRwTI6wVudBWO7ZtgGk59aiVkAKB6xCdgIWN0d9/QkpIuuU8SowGxsUs/5Q1y1e TiJEuiLYLAMWu2GmrIhPJSbNcAZUTgou2+il8Vf7Ye+OZ+R5HtB4HGcccdgsZwPQM2K8 QAjXI99GbDwqxozSWz1g1KOpfYcieBFNv3FAAQovS/YVXIITu6Nb/hI85lxRdJq3sOK3 GOXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=jevlQo1Z9Hsc+Wt1p1sncxOJO6G2x79mKrIlyPwwY3U=; b=GpjVXCUuuYiOBoyHq7Y+itv7/Xc572vRFvBJf5e25m7JHOOWalkSrGc28AnWG74eLv PZFuC6bEBLkPeLBMTYSnpN1Y6cR084fzBgAwpyKSkyKT8YY0mrRW2qu+V1tbcgPOk1PF HqnnhZTP8KvkpJlcYv7cGxFTw21gVw3WEPv+VSTdFM6n9ODgmcd2WoX9zgHJRI8MOhi8 X8wUwZSqjdm2Zk4Rzjef4NkwYpAzpOx11Ufg8DOTXp6wPn/cJEJ4JqeNMM6/TLJMDK1H zZhOhvGQ4ZS5M4asiSKWfMrJeUPlCTReasoIzEbY+0IamAjt3vebG4cV6y/4g6DpgebL t15w== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=O1oE5AgF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b37-v6si2264508plb.377.2018.05.16.03.35.26; Wed, 16 May 2018 03:35:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=O1oE5AgF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752516AbeEPKc6 (ORCPT + 99 others); Wed, 16 May 2018 06:32:58 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:58774 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752309AbeEPKcz (ORCPT ); Wed, 16 May 2018 06:32:55 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 75FD4B00B70 for ; Wed, 16 May 2018 12:32:54 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1526466774; x=1527330775; bh=WEU3Rr3UzKxvim0FdETImUxJ +vpzdcUN2Onog0bfsBE=; b=O1oE5AgF3K0dYelRh+IfZIjtG8Bp5E9u0nr6xCaJ Rejev3SDiT1INy9KD2BB5vIFH6Q/oVCboGYO8XCDxxzcvEzjABiT2AV+dk+j9z3R D0nnMEPUmu4O7xVkU2eKj7YxQEo0VLMgMT0nhEjiQcI6mY63GTxDG+kDG6sLx2hB rkw= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2TEsvTg312b5 for ; Wed, 16 May 2018 12:32:54 +0200 (CEST) Received: from localhost.localdomain (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id AC91FB00811; Wed, 16 May 2018 12:32:52 +0200 (CEST) From: Giulio Benetti To: a.zummo@towertech.it, alexandre.belloni@bootlin.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Giulio Benetti Subject: [PATCH v5 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 16 May 2018 12:32:48 +0200 Message-Id: <20180516103251.74707-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org data field points to m41t00, instead it should point to m41t0. Driver works correctly because on both cases(m41t0 and m41t00) chip_desc are equal. Point to right enum m41t0 instead of m41t00. Signed-off-by: Giulio Benetti --- drivers/rtc/rtc-ds1307.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c index a13e59edff53..32aadcbc377f 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -298,7 +298,7 @@ static const struct of_device_id ds1307_of_match[] = { }, { .compatible = "st,m41t0", - .data = (void *)m41t00 + .data = (void *)m41t0 }, { .compatible = "st,m41t00", -- 2.17.0