diff options
author | Brett M Russ <russb@emc.com> | 2005-08-15 15:23:41 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-08 18:07:08 -0400 |
commit | a04ce0ffcaf561994ecf382cd3caad75556dc499 (patch) | |
tree | e891a767810333fe2bf29ddb35f57b0a3ec6e18e /drivers/scsi/sata_sis.c | |
parent | 3fe9d19f9e86a55679f5f2b38ec0a43a1a510cee (diff) |
[PATCH] PCI/libata INTx cleanup
Simple cleanup to eliminate X copies of the pci_enable_intx() function
in libata. Moved ahci.c's pci_intx() to pci.c and use it throughout
libata and msi.c.
Signed-off-by: Brett Russ <russb@emc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/scsi/sata_sis.c')
-rw-r--r-- | drivers/scsi/sata_sis.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/scsi/sata_sis.c b/drivers/scsi/sata_sis.c index 7d1aaa99aaae..2bd3f11ac010 100644 --- a/drivers/scsi/sata_sis.c +++ b/drivers/scsi/sata_sis.c | |||
@@ -233,18 +233,6 @@ static void sis_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val) | |||
233 | } | 233 | } |
234 | } | 234 | } |
235 | 235 | ||
236 | /* move to PCI layer, integrate w/ MSI stuff */ | ||
237 | static void pci_enable_intx(struct pci_dev *pdev) | ||
238 | { | ||
239 | u16 pci_command; | ||
240 | |||
241 | pci_read_config_word(pdev, PCI_COMMAND, &pci_command); | ||
242 | if (pci_command & PCI_COMMAND_INTX_DISABLE) { | ||
243 | pci_command &= ~PCI_COMMAND_INTX_DISABLE; | ||
244 | pci_write_config_word(pdev, PCI_COMMAND, pci_command); | ||
245 | } | ||
246 | } | ||
247 | |||
248 | static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | 236 | static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) |
249 | { | 237 | { |
250 | struct ata_probe_ent *probe_ent = NULL; | 238 | struct ata_probe_ent *probe_ent = NULL; |
@@ -319,7 +307,7 @@ static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) | |||
319 | } | 307 | } |
320 | 308 | ||
321 | pci_set_master(pdev); | 309 | pci_set_master(pdev); |
322 | pci_enable_intx(pdev); | 310 | pci_intx(pdev, 1); |
323 | 311 | ||
324 | /* FIXME: check ata_device_add return value */ | 312 | /* FIXME: check ata_device_add return value */ |
325 | ata_device_add(probe_ent); | 313 | ata_device_add(probe_ent); |