From patchwork Thu Oct 8 09:34:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fei Shao X-Patchwork-Id: 11822533 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADADF6CA for ; Thu, 8 Oct 2020 09:36:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 57959206E5 for ; Thu, 8 Oct 2020 09:36:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gYKCh8IR"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="hJ6kgqwb" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 57959206E5 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=T5Ydyqmf+QFiYss/rOoybcaNhrWJnSJqiXeLD4A6VqQ=; b=gYKCh8IR5eMdld1goitfLAZpPz 4zxiAsd9TK4bgvYXfX3IyU8myN9+8OSj3SIayehdJbxBcdIRwC3J/wIR19+2J2b606xT8fz5SNICH qfmQT3JFGO+p9k9uMLvYVgXZWOTjn4jYVNsW24CbhJ0g5TIVL4N9ggjjysf8xWHRWRllMk+SHEYKY HU2VLCBfhH/LFXMdPi4PQXah+IiEEE9muKIwaCNQhxmn2AOk1iRggkXclRN7qFlq1He2Xxib0Lgs8 TanOO9ARrI4wPV3cnZWIIGHr2G6RyXJy/NOYN9HiSrv5mMeJe6z9PZra8QCo0tx3mQ1NGrYQ4uBv1 ID5wwQPA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQSJi-0002MQ-5l; Thu, 08 Oct 2020 09:34:30 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQSJe-0002Km-MM for linux-arm-kernel@lists.infradead.org; Thu, 08 Oct 2020 09:34:27 +0000 Received: by mail-pf1-x441.google.com with SMTP id k8so3527426pfk.2 for ; Thu, 08 Oct 2020 02:34:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ky6B9tzxN97erkw+L3nihgRW4OC9vjJOPwyhfBdbivM=; b=hJ6kgqwbkmiF+RvoAlO+KDFQRiWTJWGEZCGcib6sEFkrkP/9ioxTPU/3+Ump8jnpMH R+54SWbf0ge46G0SySQ5qFrvzhoUXIgnEixyPrhOrCyIuZWPOtMtsxEcf2r6sijAtoS6 6Ope6x8XjIt+Unfrf/47HdTxoQjqg+KP8fgA8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ky6B9tzxN97erkw+L3nihgRW4OC9vjJOPwyhfBdbivM=; b=HyOQxf+U8+MJQo2AcUTgG7G1o0BK52NA/Jsps14HJrdcSZRD7i2eV8PSH2Xr5ngZvN 7CBT5EZRdedlnkXQ7/NPthUg7+rwLmNfSwbDGe2g9RnkUN0cqanqgO349cWoez3BhKLK lbF1SYlcPph0ifUX/Y953Z+G7x7o/ea9mB11nQX2zBGmZg1nT7vHPo/V8rafeuC69PqG KYqp0qHU7gwqMsIujx31m1EC4/7i3H8IrJjX2c9i7FJozrsyZPV7mvVPLs42H2LcdtEF xl0X5dEpXqrmiFxGKFs8lCnna7XXid6PTGnp4BWG9oRQienNvEoV9f9siokz7Kv1GBjA lkZQ== X-Gm-Message-State: AOAM533ApTBfRKCdROFYioCBMQCfclMYc/nOu+snAmz6oo8alTgbQ8xM meSgC/oKiAx2inAlN4OIeClVVQ== X-Google-Smtp-Source: ABdhPJxNmMQ5cqAp68AMAOr14GG/lN71/+I/Wr47wnEu0lH1ZnbSJkmDEQSjhjshVstu8ZSZpzI7jQ== X-Received: by 2002:a62:5382:0:b029:155:6333:ce4f with SMTP id h124-20020a6253820000b02901556333ce4fmr1061372pfb.28.1602149662342; Thu, 08 Oct 2020 02:34:22 -0700 (PDT) Received: from fshao-glinux.tpe.corp.google.com ([2401:fa00:1:b:1a60:24ff:fe90:ea5a]) by smtp.gmail.com with ESMTPSA id q7sm6113711pfj.38.2020.10.08.02.34.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2020 02:34:21 -0700 (PDT) From: Fei Shao To: Eddie Huang Subject: [PATCH] rtc: mt6397: Remove unused member dev Date: Thu, 8 Oct 2020 17:34:14 +0800 Message-Id: <20201008093414.1911699-1-fshao@chromium.org> X-Mailer: git-send-email 2.28.0.806.g8561365e88-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201008_053426_817631_721EA443 X-CRM114-Status: GOOD ( 15.15 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:441 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.0 DKIMWL_WL_HIGH DKIMwl.org - High trust sender X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rtc@vger.kernel.org, Alessandro Zummo , Josef Friedl , Alexandre Belloni , Fei Shao , Ran Bi , Sean Wang , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Matthias Brugger , Lee Jones , Hsin-Hsiung Wang Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Removing the struct member "dev" in mt6397 RTC driver because it's not initialized and the only usage is for one debugging message. Also fixed a typo in the error message. Signed-off-by: Fei Shao --- drivers/rtc/rtc-mt6397.c | 3 ++- include/linux/mfd/mt6397/rtc.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-mt6397.c b/drivers/rtc/rtc-mt6397.c index f8b1353777ba..1894aded4c85 100644 --- a/drivers/rtc/rtc-mt6397.c +++ b/drivers/rtc/rtc-mt6397.c @@ -31,7 +31,8 @@ static int mtk_rtc_write_trigger(struct mt6397_rtc *rtc) MTK_RTC_POLL_DELAY_US, MTK_RTC_POLL_TIMEOUT); if (ret < 0) - dev_err(rtc->dev, "failed to write WRTGE: %d\n", ret); + dev_err(rtc->rtc_dev->dev.parent, + "failed to write WRTGR: %d\n", ret); return ret; } diff --git a/include/linux/mfd/mt6397/rtc.h b/include/linux/mfd/mt6397/rtc.h index 66989a16221a..c3748b53bf7d 100644 --- a/include/linux/mfd/mt6397/rtc.h +++ b/include/linux/mfd/mt6397/rtc.h @@ -72,7 +72,6 @@ struct mtk_rtc_data { }; struct mt6397_rtc { - struct device *dev; struct rtc_device *rtc_dev; /* Protect register access from multiple tasks */