public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH for-next] bus: brcmstb_gisb: use gdev_{read, write} in suspend/resume paths
@ 2014-12-05 19:15 Florian Fainelli
  2014-12-08 16:21 ` Arnd Bergmann
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2014-12-05 19:15 UTC (permalink / raw)
  To: linux-arm-kernel

This patch fixes a small merge issue between:
Commit 2b53eadcea05 ("bus: brcmstb_gisb: Introduce wrapper functions for
MMIO accesses") and 203bb85ed605 ("bus: brcmstb_gisb: save and restore
GISB timeout"), the former introducing wrapper I/O accessors to be
decoupled from the register offsets and use table, while the latter had
not been converted to using these wrapper.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
Arnd, Olof,

This applies on top of your arm-soc/for-next branch as of
921caee4a849443bcda286f903b6ec01c5aa7fd8 ("arm-soc: document merges")

Thanks!

 drivers/bus/brcmstb_gisb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/bus/brcmstb_gisb.c b/drivers/bus/brcmstb_gisb.c
index fa7b3cd09fc0..46de8dc39eb4 100644
--- a/drivers/bus/brcmstb_gisb.c
+++ b/drivers/bus/brcmstb_gisb.c
@@ -359,7 +359,7 @@ static int brcmstb_gisb_arb_suspend(struct device *dev)
 	struct platform_device *pdev = to_platform_device(dev);
 	struct brcmstb_gisb_arb_device *gdev = platform_get_drvdata(pdev);
 
-	gdev->saved_timeout = ioread32(gdev->base + ARB_TIMER);
+	gdev->saved_timeout = gisb_read(gdev, ARB_TIMER);
 
 	return 0;
 }
@@ -372,7 +372,7 @@ static int brcmstb_gisb_arb_resume_noirq(struct device *dev)
 	struct platform_device *pdev = to_platform_device(dev);
 	struct brcmstb_gisb_arb_device *gdev = platform_get_drvdata(pdev);
 
-	iowrite32(gdev->saved_timeout, gdev->base + ARB_TIMER);
+	gisb_write(gdev, gdev->saved_timeout, ARB_TIMER);
 
 	return 0;
 }
-- 
2.1.0

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

end of thread, other threads:[~2014-12-08 16:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-05 19:15 [PATCH for-next] bus: brcmstb_gisb: use gdev_{read, write} in suspend/resume paths Florian Fainelli
2014-12-08 16:21 ` Arnd Bergmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox