diff mbox series

rtc: xgene: Remove unused struct device in struct xgene_rtc_dev

Message ID 20191123090234.32180-1-nobuhiro1.iwamatsu@toshiba.co.jp
State Accepted
Headers show
Series rtc: xgene: Remove unused struct device in struct xgene_rtc_dev | expand

Commit Message

Nobuhiro Iwamatsu Nov. 23, 2019, 9:02 a.m. UTC
From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>

struct device in struct xgene_rtc_dev is not used, remove it.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 drivers/rtc/rtc-xgene.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Alexandre Belloni Nov. 26, 2019, 10:34 p.m. UTC | #1
On 23/11/2019 18:02:34+0900, Nobuhiro Iwamatsu wrote:
> From: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> 
> struct device in struct xgene_rtc_dev is not used, remove it.
> 
> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> ---
>  drivers/rtc/rtc-xgene.c | 2 --
>  1 file changed, 2 deletions(-)
> 
Applied, thanks.
diff mbox series

Patch

diff --git a/drivers/rtc/rtc-xgene.c b/drivers/rtc/rtc-xgene.c
index 603c4e444fd06..96db441f92b3e 100644
--- a/drivers/rtc/rtc-xgene.c
+++ b/drivers/rtc/rtc-xgene.c
@@ -34,7 +34,6 @@ 
 
 struct xgene_rtc_dev {
 	struct rtc_device *rtc;
-	struct device *dev;
 	void __iomem *csr_base;
 	struct clk *clk;
 	unsigned int irq_wake;
@@ -144,7 +143,6 @@  static int xgene_rtc_probe(struct platform_device *pdev)
 	if (!pdata)
 		return -ENOMEM;
 	platform_set_drvdata(pdev, pdata);
-	pdata->dev = &pdev->dev;
 
 	pdata->csr_base = devm_platform_ioremap_resource(pdev, 0);
 	if (IS_ERR(pdata->csr_base))