linux-rtc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rtc: xgene: Remove unused struct device in struct xgene_rtc_dev
@ 2019-11-23  9:02 Nobuhiro Iwamatsu
  2019-11-26 22:34 ` Alexandre Belloni
  0 siblings, 1 reply; 2+ messages in thread
From: Nobuhiro Iwamatsu @ 2019-11-23  9:02 UTC (permalink / raw)
  To: alexandre.belloni; +Cc: linux-rtc, rsahu, Nobuhiro Iwamatsu

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(-)

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))
-- 
2.24.0.rc1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] rtc: xgene: Remove unused struct device in struct xgene_rtc_dev
  2019-11-23  9:02 [PATCH] rtc: xgene: Remove unused struct device in struct xgene_rtc_dev Nobuhiro Iwamatsu
@ 2019-11-26 22:34 ` Alexandre Belloni
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Belloni @ 2019-11-26 22:34 UTC (permalink / raw)
  To: Nobuhiro Iwamatsu; +Cc: linux-rtc, rsahu

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.

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-26 22:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-23  9:02 [PATCH] rtc: xgene: Remove unused struct device in struct xgene_rtc_dev Nobuhiro Iwamatsu
2019-11-26 22:34 ` Alexandre Belloni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).