diff options
Diffstat (limited to 'drivers/ide/pci/sgiioc4.c')
-rw-r--r-- | drivers/ide/pci/sgiioc4.c | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/drivers/ide/pci/sgiioc4.c b/drivers/ide/pci/sgiioc4.c index 4651a22bf12e..af526b671c4e 100644 --- a/drivers/ide/pci/sgiioc4.c +++ b/drivers/ide/pci/sgiioc4.c | |||
@@ -34,7 +34,7 @@ | |||
34 | #include <linux/mm.h> | 34 | #include <linux/mm.h> |
35 | #include <linux/ioport.h> | 35 | #include <linux/ioport.h> |
36 | #include <linux/blkdev.h> | 36 | #include <linux/blkdev.h> |
37 | #include <linux/ioc4_common.h> | 37 | #include <linux/ioc4.h> |
38 | #include <asm/io.h> | 38 | #include <asm/io.h> |
39 | 39 | ||
40 | #include <linux/ide.h> | 40 | #include <linux/ide.h> |
@@ -715,14 +715,34 @@ static ide_pci_device_t sgiioc4_chipsets[] __devinitdata = { | |||
715 | }; | 715 | }; |
716 | 716 | ||
717 | int | 717 | int |
718 | ioc4_ide_attach_one(struct pci_dev *dev, const struct pci_device_id *id) | 718 | ioc4_ide_attach_one(struct ioc4_driver_data *idd) |
719 | { | 719 | { |
720 | return pci_init_sgiioc4(dev, &sgiioc4_chipsets[id->driver_data]); | 720 | return pci_init_sgiioc4(idd->idd_pdev, |
721 | &sgiioc4_chipsets[idd->idd_pci_id->driver_data]); | ||
721 | } | 722 | } |
722 | 723 | ||
724 | static struct ioc4_submodule ioc4_ide_submodule = { | ||
725 | .is_name = "IOC4_ide", | ||
726 | .is_owner = THIS_MODULE, | ||
727 | .is_probe = ioc4_ide_attach_one, | ||
728 | /* .is_remove = ioc4_ide_remove_one, */ | ||
729 | }; | ||
730 | |||
731 | static int __devinit | ||
732 | ioc4_ide_init(void) | ||
733 | { | ||
734 | return ioc4_register_submodule(&ioc4_ide_submodule); | ||
735 | } | ||
736 | |||
737 | static void __devexit | ||
738 | ioc4_ide_exit(void) | ||
739 | { | ||
740 | ioc4_unregister_submodule(&ioc4_ide_submodule); | ||
741 | } | ||
742 | |||
743 | module_init(ioc4_ide_init); | ||
744 | module_exit(ioc4_ide_exit); | ||
723 | 745 | ||
724 | MODULE_AUTHOR("Aniket Malatpure - Silicon Graphics Inc. (SGI)"); | 746 | MODULE_AUTHOR("Aniket Malatpure - Silicon Graphics Inc. (SGI)"); |
725 | MODULE_DESCRIPTION("IDE PCI driver module for SGI IOC4 Base-IO Card"); | 747 | MODULE_DESCRIPTION("IDE PCI driver module for SGI IOC4 Base-IO Card"); |
726 | MODULE_LICENSE("GPL"); | 748 | MODULE_LICENSE("GPL"); |
727 | |||
728 | EXPORT_SYMBOL(ioc4_ide_attach_one); | ||