diff options
| -rw-r--r-- | drivers/bcma/bcma_private.h | 4 | ||||
| -rw-r--r-- | drivers/bcma/driver_pci.c | 6 | ||||
| -rw-r--r-- | drivers/bcma/driver_pci_host.c | 2 | ||||
| -rw-r--r-- | drivers/bcma/host_pci.c | 4 | ||||
| -rw-r--r-- | drivers/bcma/main.c | 2 | ||||
| -rw-r--r-- | include/linux/bcma/bcma_driver_pci.h | 2 |
6 files changed, 10 insertions, 10 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h index 6109da5d883c..63c5242159f2 100644 --- a/drivers/bcma/bcma_private.h +++ b/drivers/bcma/bcma_private.h | |||
| @@ -13,7 +13,7 @@ | |||
| 13 | struct bcma_bus; | 13 | struct bcma_bus; |
| 14 | 14 | ||
| 15 | /* main.c */ | 15 | /* main.c */ |
| 16 | int bcma_bus_register(struct bcma_bus *bus); | 16 | int __devinit bcma_bus_register(struct bcma_bus *bus); |
| 17 | void bcma_bus_unregister(struct bcma_bus *bus); | 17 | void bcma_bus_unregister(struct bcma_bus *bus); |
| 18 | int __init bcma_bus_early_register(struct bcma_bus *bus, | 18 | int __init bcma_bus_early_register(struct bcma_bus *bus, |
| 19 | struct bcma_device *core_cc, | 19 | struct bcma_device *core_cc, |
| @@ -52,7 +52,7 @@ extern void __exit bcma_host_pci_exit(void); | |||
| 52 | u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); | 52 | u32 bcma_pcie_read(struct bcma_drv_pci *pc, u32 address); |
| 53 | 53 | ||
| 54 | #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE | 54 | #ifdef CONFIG_BCMA_DRIVER_PCI_HOSTMODE |
| 55 | void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); | 55 | void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc); |
| 56 | #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ | 56 | #endif /* CONFIG_BCMA_DRIVER_PCI_HOSTMODE */ |
| 57 | 57 | ||
| 58 | #endif | 58 | #endif |
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 | ||
| 177 | static void bcma_core_pci_clientmode_init(struct bcma_drv_pci *pc) | 177 | static 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 | ||
| 182 | static bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) | 182 | static 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 | ||
| 207 | void bcma_core_pci_init(struct bcma_drv_pci *pc) | 207 | void __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; |
diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c index eb332b75ce83..99e040b607a2 100644 --- a/drivers/bcma/driver_pci_host.c +++ b/drivers/bcma/driver_pci_host.c | |||
| @@ -8,7 +8,7 @@ | |||
| 8 | #include "bcma_private.h" | 8 | #include "bcma_private.h" |
| 9 | #include <linux/bcma/bcma.h> | 9 | #include <linux/bcma/bcma.h> |
| 10 | 10 | ||
| 11 | void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) | 11 | void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) |
| 12 | { | 12 | { |
| 13 | pr_err("No support for PCI core in hostmode yet\n"); | 13 | pr_err("No support for PCI core in hostmode yet\n"); |
| 14 | } | 14 | } |
diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c index f59244e33971..e3928d68802b 100644 --- a/drivers/bcma/host_pci.c +++ b/drivers/bcma/host_pci.c | |||
| @@ -154,8 +154,8 @@ const struct bcma_host_ops bcma_host_pci_ops = { | |||
| 154 | .awrite32 = bcma_host_pci_awrite32, | 154 | .awrite32 = bcma_host_pci_awrite32, |
| 155 | }; | 155 | }; |
| 156 | 156 | ||
| 157 | static int bcma_host_pci_probe(struct pci_dev *dev, | 157 | static int __devinit bcma_host_pci_probe(struct pci_dev *dev, |
| 158 | const struct pci_device_id *id) | 158 | const struct pci_device_id *id) |
| 159 | { | 159 | { |
| 160 | struct bcma_bus *bus; | 160 | struct bcma_bus *bus; |
| 161 | int err = -ENOMEM; | 161 | int err = -ENOMEM; |
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index febbc0a1222a..3363036f23dc 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c | |||
| @@ -132,7 +132,7 @@ static void bcma_unregister_cores(struct bcma_bus *bus) | |||
| 132 | } | 132 | } |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | int bcma_bus_register(struct bcma_bus *bus) | 135 | int __devinit bcma_bus_register(struct bcma_bus *bus) |
| 136 | { | 136 | { |
| 137 | int err; | 137 | int err; |
| 138 | struct bcma_device *core; | 138 | struct bcma_device *core; |
diff --git a/include/linux/bcma/bcma_driver_pci.h b/include/linux/bcma/bcma_driver_pci.h index 67ea7beff9f3..679d4cab4547 100644 --- a/include/linux/bcma/bcma_driver_pci.h +++ b/include/linux/bcma/bcma_driver_pci.h | |||
| @@ -169,7 +169,7 @@ struct bcma_drv_pci { | |||
| 169 | #define pcicore_read32(pc, offset) bcma_read32((pc)->core, offset) | 169 | #define pcicore_read32(pc, offset) bcma_read32((pc)->core, offset) |
| 170 | #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) | 170 | #define pcicore_write32(pc, offset, val) bcma_write32((pc)->core, offset, val) |
| 171 | 171 | ||
| 172 | extern void bcma_core_pci_init(struct bcma_drv_pci *pc); | 172 | extern void __devinit bcma_core_pci_init(struct bcma_drv_pci *pc); |
| 173 | extern int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, | 173 | extern int bcma_core_pci_irq_ctl(struct bcma_drv_pci *pc, |
| 174 | struct bcma_device *core, bool enable); | 174 | struct bcma_device *core, bool enable); |
| 175 | 175 | ||
