Received: by 10.192.165.148 with SMTP id m20csp281086imm; Wed, 9 May 2018 12:35:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpURhtH+5SkDkyCuPXvOTG1U4Vo2bpJl2XGAKKNy36H/XEpffff7ZEMHiUg75pEPL8KZau2 X-Received: by 2002:a17:902:b216:: with SMTP id t22-v6mr24386547plr.105.1525894539976; Wed, 09 May 2018 12:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525894539; cv=none; d=google.com; s=arc-20160816; b=KZfILIWQIQ2JjgMLsCQxRcC7ts6SffOhw31Y96WjuJBPPHhclnXBe+DuodGIz7fu6N x3DZrLSFsUtSu6fvsgRt8fq0M/rFNGdZjpPJb2Za77PeM1GoUP/AipLf9A+8lBlG/WuB RHCnjUmOI36ADG2KvdkR6ShWIY6lWXRnZQVTdIdGulmZrLgIHfZqeHbizaddp4ok5G6w zafQhI0qxb5pExpIndjD1XLrAQR7C9AR1bUavDumLHM6IZ8xlbehCDmU44DhHCJ/fQaV UIzhfSYuopYC1p9JXcruKQQhkLH/ZYVpHhliz4JYBqotWEhN3eCZguK/9fqnzR92d683 MWMQ== 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=ykdFa7PAN+kgHDbqS8w5UwtIRG40lNdGLKl0KoYzm+WpN+8vLYK/iZGudddJncOygY bBYLZOuAnK9bKVMIgGPXLuhDaZjxxWMFJMMLE0WBh9D4B8O3UgQC6gcVrJvoDsPPJDFM g3duZqSAccRVqPVKoz+rDXS0Av6X0WGuNMCBhlVNaU52OFblx8TM8zCpdzyRyo/oeq2T /Y+z231HqgHZ/Jw7S7zCXaFIyuwxJLeCW57eEGuMMNp4opGNTrIaBYX47eScdLdgfz2w OpD78QT/mtgxl3QGag8v+nJXI3Ad+b+A/A+2aG/324OXgdtsW8nv76RS/wdm0Rnabfl+ Kn3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=W4E92zrx; 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 v19-v6si21838560pgc.694.2018.05.09.12.35.25; Wed, 09 May 2018 12: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=W4E92zrx; 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 S965449AbeEITeC (ORCPT + 99 others); Wed, 9 May 2018 15:34:02 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:33576 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964956AbeEITeA (ORCPT ); Wed, 9 May 2018 15:34:00 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 59ECFB00AC7 for ; Wed, 9 May 2018 21:33:59 +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=1525894438; x=1526758439; bh=WEU3Rr3UzKxvim0FdETImUxJ +vpzdcUN2Onog0bfsBE=; b=W4E92zrxRTlr21WHl8PdT4l2yM7LIxwFOaIVfcr/ ccCZHRd6qA8Dwtf/VG+VvpcRxehHxbezkWKYaPe+RmyUoGxMxkUlvp0x8kyZhilg boYegdx5kvrezaTYpfea9Qn8YgFUSuQWoeYiog0MC7TWR6oCnDFKRQfzCoWd+lTB uIA= 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 K_eNeT7KGzTh for ; Wed, 9 May 2018 21:33:58 +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 A70DAB00A79; Wed, 9 May 2018 21:33:57 +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 v3 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 9 May 2018 21:33:52 +0200 Message-Id: <20180509193355.49466-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