diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx_osm_pci.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx_osm_pci.c | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx_osm_pci.c b/drivers/scsi/aic7xxx/aic79xx_osm_pci.c index 66f0259edb69..4150c8a8fdc2 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm_pci.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm_pci.c | |||
@@ -43,17 +43,6 @@ | |||
43 | #include "aic79xx_inline.h" | 43 | #include "aic79xx_inline.h" |
44 | #include "aic79xx_pci.h" | 44 | #include "aic79xx_pci.h" |
45 | 45 | ||
46 | static int ahd_linux_pci_dev_probe(struct pci_dev *pdev, | ||
47 | const struct pci_device_id *ent); | ||
48 | static int ahd_linux_pci_reserve_io_regions(struct ahd_softc *ahd, | ||
49 | u_long *base, u_long *base2); | ||
50 | static int ahd_linux_pci_reserve_mem_region(struct ahd_softc *ahd, | ||
51 | u_long *bus_addr, | ||
52 | uint8_t __iomem **maddr); | ||
53 | static int ahd_linux_pci_dev_suspend(struct pci_dev *pdev, pm_message_t mesg); | ||
54 | static int ahd_linux_pci_dev_resume(struct pci_dev *pdev); | ||
55 | static void ahd_linux_pci_dev_remove(struct pci_dev *pdev); | ||
56 | |||
57 | /* Define the macro locally since it's different for different class of chips. | 46 | /* Define the macro locally since it's different for different class of chips. |
58 | */ | 47 | */ |
59 | #define ID(x) \ | 48 | #define ID(x) \ |
@@ -85,17 +74,7 @@ static struct pci_device_id ahd_linux_pci_id_table[] = { | |||
85 | 74 | ||
86 | MODULE_DEVICE_TABLE(pci, ahd_linux_pci_id_table); | 75 | MODULE_DEVICE_TABLE(pci, ahd_linux_pci_id_table); |
87 | 76 | ||
88 | static struct pci_driver aic79xx_pci_driver = { | ||
89 | .name = "aic79xx", | ||
90 | .probe = ahd_linux_pci_dev_probe, | ||
91 | #ifdef CONFIG_PM | 77 | #ifdef CONFIG_PM |
92 | .suspend = ahd_linux_pci_dev_suspend, | ||
93 | .resume = ahd_linux_pci_dev_resume, | ||
94 | #endif | ||
95 | .remove = ahd_linux_pci_dev_remove, | ||
96 | .id_table = ahd_linux_pci_id_table | ||
97 | }; | ||
98 | |||
99 | static int | 78 | static int |
100 | ahd_linux_pci_dev_suspend(struct pci_dev *pdev, pm_message_t mesg) | 79 | ahd_linux_pci_dev_suspend(struct pci_dev *pdev, pm_message_t mesg) |
101 | { | 80 | { |
@@ -139,6 +118,7 @@ ahd_linux_pci_dev_resume(struct pci_dev *pdev) | |||
139 | 118 | ||
140 | return rc; | 119 | return rc; |
141 | } | 120 | } |
121 | #endif | ||
142 | 122 | ||
143 | static void | 123 | static void |
144 | ahd_linux_pci_dev_remove(struct pci_dev *pdev) | 124 | ahd_linux_pci_dev_remove(struct pci_dev *pdev) |
@@ -245,6 +225,17 @@ ahd_linux_pci_dev_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
245 | return (0); | 225 | return (0); |
246 | } | 226 | } |
247 | 227 | ||
228 | static struct pci_driver aic79xx_pci_driver = { | ||
229 | .name = "aic79xx", | ||
230 | .probe = ahd_linux_pci_dev_probe, | ||
231 | #ifdef CONFIG_PM | ||
232 | .suspend = ahd_linux_pci_dev_suspend, | ||
233 | .resume = ahd_linux_pci_dev_resume, | ||
234 | #endif | ||
235 | .remove = ahd_linux_pci_dev_remove, | ||
236 | .id_table = ahd_linux_pci_id_table | ||
237 | }; | ||
238 | |||
248 | int | 239 | int |
249 | ahd_linux_pci_init(void) | 240 | ahd_linux_pci_init(void) |
250 | { | 241 | { |