diff options
Diffstat (limited to 'drivers/bcma/driver_pci_host.c')
-rw-r--r-- | drivers/bcma/driver_pci_host.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/bcma/driver_pci_host.c b/drivers/bcma/driver_pci_host.c index e6b5c89469dc..af0c9fabee54 100644 --- a/drivers/bcma/driver_pci_host.c +++ b/drivers/bcma/driver_pci_host.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #define BCMA_PCI_SLOT_MAX 16 | 24 | #define BCMA_PCI_SLOT_MAX 16 |
25 | #define PCI_CONFIG_SPACE_SIZE 256 | 25 | #define PCI_CONFIG_SPACE_SIZE 256 |
26 | 26 | ||
27 | bool __devinit bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) | 27 | bool bcma_core_pci_is_in_hostmode(struct bcma_drv_pci *pc) |
28 | { | 28 | { |
29 | struct bcma_bus *bus = pc->core->bus; | 29 | struct bcma_bus *bus = pc->core->bus; |
30 | u16 chipid_top; | 30 | u16 chipid_top; |
@@ -264,10 +264,9 @@ static int bcma_core_pci_hostmode_write_config(struct pci_bus *bus, | |||
264 | } | 264 | } |
265 | 265 | ||
266 | /* return cap_offset if requested capability exists in the PCI config space */ | 266 | /* return cap_offset if requested capability exists in the PCI config space */ |
267 | static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc, | 267 | static u8 bcma_find_pci_capability(struct bcma_drv_pci *pc, unsigned int dev, |
268 | unsigned int dev, | 268 | unsigned int func, u8 req_cap_id, |
269 | unsigned int func, u8 req_cap_id, | 269 | unsigned char *buf, u32 *buflen) |
270 | unsigned char *buf, u32 *buflen) | ||
271 | { | 270 | { |
272 | u8 cap_id; | 271 | u8 cap_id; |
273 | u8 cap_ptr = 0; | 272 | u8 cap_ptr = 0; |
@@ -334,7 +333,7 @@ static u8 __devinit bcma_find_pci_capability(struct bcma_drv_pci *pc, | |||
334 | * Retry Status (CRS) Completion Status to software then | 333 | * Retry Status (CRS) Completion Status to software then |
335 | * enable the feature. | 334 | * enable the feature. |
336 | */ | 335 | */ |
337 | static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) | 336 | static void bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) |
338 | { | 337 | { |
339 | struct bcma_bus *bus = pc->core->bus; | 338 | struct bcma_bus *bus = pc->core->bus; |
340 | u8 cap_ptr, root_ctrl, root_cap, dev; | 339 | u8 cap_ptr, root_ctrl, root_cap, dev; |
@@ -381,7 +380,7 @@ static void __devinit bcma_core_pci_enable_crs(struct bcma_drv_pci *pc) | |||
381 | } | 380 | } |
382 | } | 381 | } |
383 | 382 | ||
384 | void __devinit bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) | 383 | void bcma_core_pci_hostmode_init(struct bcma_drv_pci *pc) |
385 | { | 384 | { |
386 | struct bcma_bus *bus = pc->core->bus; | 385 | struct bcma_bus *bus = pc->core->bus; |
387 | struct bcma_drv_pci_host *pc_host; | 386 | struct bcma_drv_pci_host *pc_host; |