Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2509032imm; Wed, 16 May 2018 14:09:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrjW2+xWMN6LGYWuM06ahMtNNgjp67mA55y021XebXOAqWATivwVSCZmaPcCkDq1eqGx8Qs X-Received: by 2002:a17:902:a512:: with SMTP id s18-v6mr2459320plq.223.1526504954754; Wed, 16 May 2018 14:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526504954; cv=none; d=google.com; s=arc-20160816; b=eKTY4CyEB5aE5u9ZKxGExRzoO91H4ohjBjG9slqcR6pxkrRABWNnlpmrWkCFqOabHr ss+6h0D7IsNDx4O7BRk/nX2Lfg5hlTBP2WSZdkDelemQKXO3EsEcDZe4VkUPBTUCHZL+ BDT3et6VgtFkikX7+csFkptPPjw7uGo9cU47HbJP8Aqp/oeFUBD7oxs2IaZHxAx+aEbY I3u/U65izNqvVZU8EijCcGAyyDjtwkc7slv5byumj/mpyNpGq4vZmSdaDC8fUsri6JNk ErSWKA1oHUweVSplz5PJvTZaPg6zm4n8ZJTAd+mMtqo0vZeP9fZafqu7AGnG8jVd6nRm zy6w== 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=R3aGLuvs34H+bV/1vYEt3+FLYAcgHnaCk2kJvfU7Ge/vtrvcHLqjN4t/coUI+UGNic bdMmYMpnxt8Rr/twNQcsKDdeL/ouX2C9UtS9T8SDEjv2qQYUuTvLMwTNIj9l4Y+gkPK3 BExAFbkybvgadk12nHdYiKnwvVJoUgvngicLwx4Sx/RGLjrOtxdpBOWTly7kCyWJb1vO iEMxWGwdoZLq/AN1n0/hPmAF0p8CScbBhLCcbBNNhCqodTTIEvzeEgpnvHmbc9Z3LkY8 EMixhWtuLGgTcQuA4LX9aRl5+A5aLdLReZeZuZs1w9/rKTCFQFEKtUdwVEc+99HFwJhB sZjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=hJ9AIGzq; 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 l2-v6si2726417pgc.438.2018.05.16.14.09.00; Wed, 16 May 2018 14:09:14 -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=hJ9AIGzq; 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 S1751977AbeEPVHO (ORCPT + 99 others); Wed, 16 May 2018 17:07:14 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:55040 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeEPVHM (ORCPT ); Wed, 16 May 2018 17:07:12 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id C3AF7B00894 for ; Wed, 16 May 2018 23:07:10 +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=1526504830; x=1527368831; bh=WEU3Rr3UzKxvim0FdETImUxJ +vpzdcUN2Onog0bfsBE=; b=hJ9AIGzqqxwJL4x/bhqMbtsVGUzYiqtO3zEyHmnd FLquuhdRS9rHIKWS8VtoP1ciUBCGXA8qWexzuYLi0Y5u3vuL7Sz9EzyMWBIoQgeZ 4/mI+rRPnbuVa9znbQrrjRmpKEIISbyYdvvqOG1lWlH6ujlYz6ywBC4Bk2jFY9Pa pm8= 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 2zx_H1SbELzV for ; Wed, 16 May 2018 23:07:10 +0200 (CEST) Received: from localhost.localdomain (unknown [192.168.123.79]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 06384B000D8; Wed, 16 May 2018 23:07:08 +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, andy.shevchenko@gmail.com, Giulio Benetti Subject: [PATCH v6 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 16 May 2018 23:07:02 +0200 Message-Id: <20180516210705.5824-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