Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1790210imm; Wed, 16 May 2018 03:09:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrKIZKda/O6QlJgZSdeld1fNbD2YmZJ8MM/aQGPbrIhH/6YVZEyELfQcCp7mDy2KzSpDKjG X-Received: by 2002:a62:a50c:: with SMTP id v12-v6mr229182pfm.237.1526465394447; Wed, 16 May 2018 03:09:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526465394; cv=none; d=google.com; s=arc-20160816; b=F3RfQSsaI8/S76pr+MKTFh/l9nMutD4hx/2WTytE6umxI6ljesH3xMR8vBWh4sm7UU nMyBqebSMzahs6EPawMBQj/ZewrUbd9YuEUkcIiWMF/hq+DFivMxudpPjW+urpTbxit2 98Lq4Ig2mkdePNjvFFQ/o06IozV3+fykR0mv51hbv57ST7otm/XY+E2BMlDG1TfH/4k5 3KPXs4BRSErCl6zvySKmXGdV4AftMnrh7F7JzfI/B/mTU5UOFlbujtnVBtg5BHoOTYe6 mEot/sSG46BN2kgy99N9vWlAf1bFdjZ2MUzyvEWy0z+MrF3sWnNz0kse/NG/+Y/Gu8ba gEww== 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=H7NC9OdO7pUtjKV9ldcFjOomXHuu2bz8lxsXAKF2R359Cl+7MSNjAHb1ay5MOC+AC7 xwX/3DT8QrtCbCavmmfyxITmvgb76OzFzMMwYo2DvohHM4QM9iJWc5nLxgVYG1z6IU9p HcmV0J+eBLBZELiTwjvohZf0T6Qf41QL3dHusYhouLa0f20vWeKFkUKBOOiVzKCQNwmY 5CVri1lfv0zO46/0wIO17SX2/G1yfKyzMTdb1VHdPxDm6aVi2gwSlznKR7Xd0DRvq6Ul ZiHCBY594knCJFeByHR3CFJo+yeO0AVTjHDM9CLJIedNE+MfUmysV7wNDGeOiuno6ddi 1hKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=dH9YLmoB; 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 t143-v6si1769583pgb.261.2018.05.16.03.09.39; Wed, 16 May 2018 03:09:54 -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=dH9YLmoB; 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 S1753314AbeEPKFi (ORCPT + 99 others); Wed, 16 May 2018 06:05:38 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:57430 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbeEPKFf (ORCPT ); Wed, 16 May 2018 06:05:35 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 631FCB00B7B for ; Wed, 16 May 2018 12:05:33 +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=1526465132; x=1527329133; bh=WEU3Rr3UzKxvim0FdETImUxJ +vpzdcUN2Onog0bfsBE=; b=dH9YLmoBcttGtvzvIDaUOCUIIprlhwNWJyWfqVhw Cq6xjKIqmi1cFjS9BPgdM7CJoinJyts+bKiNlSs0/J00TFbBs2YiFZ7atmxwllrw fHVBUJUEmjYJAmBWUV/sxzJFhF50IR8riKPYa3V/V2/T5YUq2SpOmLqXmB3g8050 EJ8= 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 jZg59zsgiaEZ for ; Wed, 16 May 2018 12:05:32 +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 18738B00B0F; Wed, 16 May 2018 12:05:30 +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 v4 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 16 May 2018 12:05:23 +0200 Message-Id: <20180516100526.73549-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