Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp573773imm; Wed, 18 Jul 2018 07:10:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcJdUyF6vzGBjn1fOTUlGGz3bAoltBpovXQoE9Dux2CiTpYkjKyjoD9gax8QPfUlAwoNAPy X-Received: by 2002:a17:902:1703:: with SMTP id i3-v6mr5953340pli.263.1531923051563; Wed, 18 Jul 2018 07:10:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531923051; cv=none; d=google.com; s=arc-20160816; b=w3DLzMe1U2x9yK73Drh9hsgCjS9FnG8mV/OP4ei4UTpa9X4dI0KiCBtAKqMq50W71W X5vo3yzqeTvGAPvxkbAEytilYSxkpkehuSVGVi3ttWKg0DEsXichZfBwmD3ryANFLHuV s0c2snm5YovKuNRkn6XynqPAsMqUiDCgdAeeDHoNtcly7bmS6QtgJKfjgHnPWE36cyGB zih3mEhwXzZBv8INGZ3fwZFeV2iIdU7i6HNOdxKkVEcZnHXB+2Qexd0FDQ9mnPUWYN+B GQC/y5lm1xIoWCtxN6EPnMAGqd2L+Bdz9TfsdwTtsMtTljPRi267LOEacRr6AGW1VTde UgKg== 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=Zd6eRF5ifNO5yy7ZrBFkg8TRKBmNkdBr40yiUpwkZofL22k/CLEgCViX+IRa8Ase64 hsJs7LlRMyjIPsnLc8pug23b9YhIrYd7cDA/Yys7JCldSS2mHxQ/wyE/FZjcs2VVM7OX /1WqnamDY5RwKBaspDOSVXh1VMlczRYfdjlUb2/iJW6JSTPtUohHSz86MqGmb42RYAsY 4fzIYZ3rRt4eYulzQm7TJHKxtPSWATT5Iax69BsYDIhJMXi2PVigi4s4c3f6p1nLYhbm aRotm/to/70n/TAlP22n+3CaO/NV9fPpSV4HHG5VT4zdcWqn2LZo9o2jl9Rhe3noS8dn snmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=S6U50CJn; 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 z28-v6si3765470pfa.161.2018.07.18.07.10.37; Wed, 18 Jul 2018 07:10:51 -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=S6U50CJn; 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 S1731059AbeGROsE (ORCPT + 99 others); Wed, 18 Jul 2018 10:48:04 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:43434 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730256AbeGROsD (ORCPT ); Wed, 18 Jul 2018 10:48:03 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 58F46B007A1 for ; Wed, 18 Jul 2018 16:09:56 +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=1531922994; x=1532786995; bh=BL qxhPVu4LtyC6/jHt4trzmmoH+QJ4BdUT17yDY9lg8=; b=S6U50CJnFAB8o7g7S4 6Hz/atDL3AWqM3O+jDagrBHg1P5ypAv01PgDLtRDhuL99EcQQ6e3wbhG1HP10yqA OLTMiW6qkJS3D1bZfjV3tNNzFC93M3AON9m8IAYQBTf5vBgdXZtlZ6WQqYArrTdq W6cw13gudwaESSjYqpGgEFPu4= 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 DWb5Q7f56KLh for ; Wed, 18 Jul 2018 16:09:54 +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 8F4E7B00756; Wed, 18 Jul 2018 16:09:53 +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 v10 1/4] rtc: ds1307: fix data pointer to m41t0 Date: Wed, 18 Jul 2018 16:09:46 +0200 Message-Id: <20180718140946.115093-4-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180718140946.115093-1-giulio.benetti@micronovasrl.com> References: <20180718140946.115093-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