Received: by 10.192.165.148 with SMTP id m20csp221583imm; Wed, 9 May 2018 11:29:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoY9bJek+ljJQgr+QKd+lzLm7IX0vx3ZoQo/zQoetA1PLyge7PQkARDnOFpllz5WSUZhoRc X-Received: by 10.167.130.140 with SMTP id s12mr28183779pfm.136.1525890571404; Wed, 09 May 2018 11:29:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525890571; cv=none; d=google.com; s=arc-20160816; b=q4z/hqHEyZxAh5I5TsHUNdf5yYMn/LUi7x+ehgJveezw8WOeHdus434bEJq+vzlOlr ysZRp8uC0N+mLSxB/p5+4FZueKkNJK7nTOVFypC5IiUsbr8xdp+MJyTZKQpKNPI8ecj4 qudiVfuXDxDTVUjhiFmjXSq2+QbUzm5gcOtCXIFcHWU9O0Pehk7jNFf9+nu3rQLS60sa /CHRBY1HK8IuDG/WgDLhQrkhQkVSiLy7vMdInei7h+RLJrB2JOjTdUyCYZpqQO4SMknK +SrK5v08IBmG/vPQ/TSZngmB8QLonVTBDl8ocJZFWZg2XPKv7ImVSIKCryzuZ8hBrXdj PMVA== 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=L+nYz1buq8I5s0UaC/jC60qNwD/+kmAwwNbpsNmR6vqaTzrtncunxrUjEidyiZt9Jc OeCcCit+oLH01lkY85Cad7OPQyJiaoh38YWEudFBUce/I1d9iV95f4XUDNbMDJxhWWYl K+EaEKHed26e3yoOw1HjcFgO6RQhbkUjScIKPrTYo/0TSewE+MVvjpapgTEymN5qL2NG /I3/ZAVXMejDLwB9IKoiUCuCnknlz0FYdV0DlP7R+LH6L8Qz+ca0lFz8RdOwpA6mh8T7 w3uPP/So0Z8c/XfD0HGl/x4szDoIO93xSO0l7pqScePcHy5iOvpW1S1lnJo4MN4JwnB+ YDeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=WSJ3n18/; 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 v2-v6si21367207pge.105.2018.05.09.11.29.15; Wed, 09 May 2018 11:29:31 -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=WSJ3n18/; 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 S964836AbeEIS2T (ORCPT + 99 others); Wed, 9 May 2018 14:28:19 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:59474 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935326AbeEIS2R (ORCPT ); Wed, 9 May 2018 14:28:17 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 33FFFB00AC1 for ; Wed, 9 May 2018 20:28:16 +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=1525890495; x=1526754496; bh=WEU3Rr3UzKxvim0FdETImUxJ +vpzdcUN2Onog0bfsBE=; b=WSJ3n18/nENdRPNpr+8wxuIjpxnv50ZLqkoRAsT5 /ONUvbNn6TI0WxRzK4Wodm9sRNioDvFXbyFGD+vDG1jWjY6A8hnnfceAFs9I9rF6 5pAqdO8hUH8ybkRcw0kJm6irO+jUYd6ZRifpES/0pYyyXasZB7ir0HgvhxZNNyGa vcg= 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 s36fCBCaxD9V for ; Wed, 9 May 2018 20:28:15 +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 66C39B0005D; Wed, 9 May 2018 20:28:14 +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 v2 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 9 May 2018 20:28:09 +0200 Message-Id: <20180509182812.17646-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