Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp318769imm; Wed, 18 Jul 2018 02:42:15 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdm5Yd11iHLCeWrjfCnudQ+saFeOQrMDpmmD3kmuCn/TRr5sQwReCgrqNNbpq+GXCDUQGb1 X-Received: by 2002:a63:b02:: with SMTP id 2-v6mr4940843pgl.301.1531906935609; Wed, 18 Jul 2018 02:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531906935; cv=none; d=google.com; s=arc-20160816; b=CJVkgiuZUGlRB1WqXdafujhbGF0WSNCSy829gbpiHWQKlHZ1QTbyZYaP0nTWvR55nL RXmUskSK7lSCQa557hovf93mdSzS6Qn/sHBYgg1bQ2u1UeLuEHptS/i4ln5jHgJR42q4 3ympmVKFMoo2jXUdkjY/P15TSiJ9DQXfx9vXa367dJRWruwFQTlv0ab2gclA029uYs8u DFuMxdcIA6zUiMk9+k0bV9HcNjLLkbVCfc8n/d73fV67r+kGyAGRTlCUEwBRz4qeBQIE y9hjiO7eHM5K5scQsYi8rC2NcupoaR9LCwfmq+6vJgEVRtBIa/YNhmXTOL/Cvvf3BWjC I96g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0iadk2wNxYgnU9XmCUJjycbi1+ZnzfOFk5jjpJuTzZo=; b=qpG4j7X/BWAx+Rn+7mEEU8bNjWNpZzFjwMVxwORWJpf26akB1JUmEyArA+5+TvSHRu WA66yteeYCOAPOE8YoU0zgN8RmjqVllbJk4U1XiLBZbdlSBR4AUcc4BSQwCchUyfUJFh KhAP0P1tokQ+9B+O6K4MZNi4oiz+YrqfwvblLGvMB4rI9hmwTnLPcrHU175VOURgEIuV kzLlj/Nm18ZvYJqvrZjHKAZpdJlrW1UrGG5NK/s1Clq7Hf3hO1rmSQX+Wtd4WO8iVCuI pmWKFBBb+UkTvkwWsh+LDFMPHD+2ZX5fzETzS2io+H/vgko/UzXpWPepx6A6/JafQa10 XB/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=gCOr320H; 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 g14-v6si2804746plo.95.2018.07.18.02.42.00; Wed, 18 Jul 2018 02:42:15 -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=gCOr320H; 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 S1731087AbeGRKRY (ORCPT + 99 others); Wed, 18 Jul 2018 06:17:24 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:33996 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731046AbeGRKRX (ORCPT ); Wed, 18 Jul 2018 06:17:23 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 0B002B007A1 for ; Wed, 18 Jul 2018 11:40:21 +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=references:in-reply-to:x-mailer:message-id:date:date:subject :subject:to:from:from; s=dkim; t=1531906820; x=1532770821; bh=BL qxhPVu4LtyC6/jHt4trzmmoH+QJ4BdUT17yDY9lg8=; b=gCOr320H5LL78Ul/f7 /mjujX1zZjHKIhRM4llt/EYqJcrUfibOqJE7ypdOfv1OfIAtAUKq0pjAHNaObjGT UeSa/tTtrp/E74gehCojx6L2ZmkDdAvb90Ervzkb/SrzSkvFTtxyKBah/HD0NIvH wbMeNl8XWVBzlFjWdhxMdNvXk= 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 fo-0UyJDS97q for ; Wed, 18 Jul 2018 11:40:20 +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 49FF9B0076D; Wed, 18 Jul 2018 11:40:19 +0200 (CEST) From: Giulio Benetti To: Alexandre Belloni Cc: Giulio Benetti , Alessandro Zummo , linux-rtc@vger.kernel.org (open list:REAL TIME CLOCK (RTC) SUBSYSTEM), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v9 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 18 Jul 2018 11:40:06 +0200 Message-Id: <20180718094006.105675-4-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180718094006.105675-1-giulio.benetti@micronovasrl.com> References: <20180718094006.105675-1-giulio.benetti@micronovasrl.com> 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 e9ec4160d7f6..aa4a161bae98 100644 --- a/drivers/rtc/rtc-ds1307.c +++ b/drivers/rtc/rtc-ds1307.c @@ -299,7 +299,7 @@ static const struct of_device_id ds1307_of_match[] = { }, { .compatible = "st,m41t0", - .data = (void *)m41t00 + .data = (void *)m41t0 }, { .compatible = "st,m41t00", -- 2.17.1