aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/bcma/driver_pci.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-01-30 18:03:34 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-06 14:53:03 -0500
commitd1a7a8e1d367e34e5adce91f48cae07dc08d9e6c (patch)
treeb4e279942e10a4bfc51e6bfeef052c3cca088964 /drivers/bcma/driver_pci.c
parent4b259a5cc5ea967fa243dfc1f95a59ae74106f5b (diff)
bcma: make some functions __devinit
bcma_core_pci_hostmode_init() has to be in __devinit as it will call a function in that section and so all functions calling it also have to be in __devinit. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/driver_pci.c')
-rw-r--r--drivers/bcma/driver_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/bcma/driver_pci.c b/drivers/bcma/driver_pci.c
index 22dc9fca6dcb..155d953dba74 100644
--- a/drivers/bcma/driver_pci.c
+++ b/drivers/bcma/driver_pci.c
@@ -174,12 +174,12 @@ static void bcma_pcicore_serdes_workaround(struct bcma_drv_pci *pc)
174 * Init. 174 * Init.
175 **************************************************/ 175 **************************************************/
176 176
177static void bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc) 177static void __devinit bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc)
178{ 178{
179 bcma_pcicore_serdes_workaround(pc); 179 bcma_pcicore_serdes_workaround(pc);
180} 180}
181 181
182static bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) 182static bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc)
183{ 183{
184 struct bcma_bus *bus = pc->core->bus; 184 struct bcma_bus *bus = pc->core->bus;
185 u16 chipid_top; 185 u16 chipid_top;
@@ -204,7 +204,7 @@ static bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc)
204 return true; 204 return true;
205} 205}
206 206
207void bcma_core_pci_init(struct bcma_drv_pci *pc) 207void __devinit bcma_core_pci_init(struct bcma_drv_pci *pc)
208{ 208{
209 if (pc->setup_done) 209 if (pc->setup_done)
210 return; 210 return;