aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mt6397.c
diff options
context:
space:
mode:
authorFei Shao <fshao@chromium.org>2020-10-08 17:34:14 +0800
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2020-10-15 12:01:29 +0200
commit770c03e6dabacd5b9f57bba93c4311d32b618640 (patch)
treed8f172ce790fbc0316b66b3a47206b43c4f88dec /drivers/rtc/rtc-mt6397.c
parent179b4bcc4c0cf62e3737c718e05f5a69b3e9041c (diff)
downloadlinux-770c03e6dabacd5b9f57bba93c4311d32b618640.tar.gz
rtc: mt6397: Remove unused member dev
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 <fshao@chromium.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20201008093414.1911699-1-fshao@chromium.org
Diffstat (limited to 'drivers/rtc/rtc-mt6397.c')
-rw-r--r--drivers/rtc/rtc-mt6397.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-mt6397.c b/drivers/rtc/rtc-mt6397.c
index f8b1353777ba6..1894aded4c857 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;
}