diff options
author | Adrian Bunk <bunk@stusta.de> | 2007-01-30 03:59:17 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 17:39:34 -0500 |
commit | 77a527eadb425b60db3f5f0aae6a4c51c38e35e5 (patch) | |
tree | a6636031ac808b137b03a244e87db771e9eb3573 /drivers/ata/pata_sis.c | |
parent | 9b14dec5adf47287a2b52fc9fdedd6a0e245daca (diff) |
fix CONFIG_SATA_SIS=y compile error
Static code shouldn't be used from other modules.
drivers/built-in.o: In function `sis_init_one':
sata_sis.c:(.text+0x7634cd): undefined reference to `sis_info133'
sata_sis.c:(.text+0x7634d6): undefined reference to `sis_info133'
While I was at it, I also moved the prototype of this struct to a header
file.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/pata_sis.c')
-rw-r--r-- | drivers/ata/pata_sis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/pata_sis.c b/drivers/ata/pata_sis.c index 6746f3fb0876..5e616d3cc870 100644 --- a/drivers/ata/pata_sis.c +++ b/drivers/ata/pata_sis.c | |||
@@ -32,6 +32,7 @@ | |||
32 | #include <scsi/scsi_host.h> | 32 | #include <scsi/scsi_host.h> |
33 | #include <linux/libata.h> | 33 | #include <linux/libata.h> |
34 | #include <linux/ata.h> | 34 | #include <linux/ata.h> |
35 | #include "libata.h" | ||
35 | 36 | ||
36 | #define DRV_NAME "pata_sis" | 37 | #define DRV_NAME "pata_sis" |
37 | #define DRV_VERSION "0.4.5" | 38 | #define DRV_VERSION "0.4.5" |
@@ -781,7 +782,7 @@ static struct ata_port_info sis_info100_early = { | |||
781 | .pio_mask = 0x1f, /* pio0-4 */ | 782 | .pio_mask = 0x1f, /* pio0-4 */ |
782 | .port_ops = &sis_66_ops, | 783 | .port_ops = &sis_66_ops, |
783 | }; | 784 | }; |
784 | static struct ata_port_info sis_info133 = { | 785 | struct ata_port_info sis_info133 = { |
785 | .sht = &sis_sht, | 786 | .sht = &sis_sht, |
786 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, | 787 | .flags = ATA_FLAG_SLAVE_POSS | ATA_FLAG_SRST, |
787 | .pio_mask = 0x1f, /* pio0-4 */ | 788 | .pio_mask = 0x1f, /* pio0-4 */ |