aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/host_soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/bcma/host_soc.c')
-rw-r--r--drivers/bcma/host_soc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/bcma/host_soc.c b/drivers/bcma/host_soc.c
index 3475e600011a..1edd7e064621 100644
--- a/drivers/bcma/host_soc.c
+++ b/drivers/bcma/host_soc.c
@@ -134,12 +134,16 @@ static void bcma_host_soc_block_write(struct bcma_device *core,
134 134
135static u32 bcma_host_soc_aread32(struct bcma_device *core, u16 offset) 135static u32 bcma_host_soc_aread32(struct bcma_device *core, u16 offset)
136{ 136{
137 if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
138 return ~0;
137 return readl(core->io_wrap + offset); 139 return readl(core->io_wrap + offset);
138} 140}
139 141
140static void bcma_host_soc_awrite32(struct bcma_device *core, u16 offset, 142static void bcma_host_soc_awrite32(struct bcma_device *core, u16 offset,
141 u32 value) 143 u32 value)
142{ 144{
145 if (WARN_ONCE(!core->io_wrap, "Accessed core has no wrapper/agent\n"))
146 return;
143 writel(value, core->io_wrap + offset); 147 writel(value, core->io_wrap + offset);
144} 148}
145 149