aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_sis.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2007-01-30 03:59:17 -0500
committerJeff Garzik <jeff@garzik.org>2007-02-09 17:39:34 -0500
commit77a527eadb425b60db3f5f0aae6a4c51c38e35e5 (patch)
treea6636031ac808b137b03a244e87db771e9eb3573 /drivers/ata/sata_sis.c
parent9b14dec5adf47287a2b52fc9fdedd6a0e245daca (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/sata_sis.c')
-rw-r--r--drivers/ata/sata_sis.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/ata/sata_sis.c b/drivers/ata/sata_sis.c
index a915822ae63c..af6f42578f59 100644
--- a/drivers/ata/sata_sis.c
+++ b/drivers/ata/sata_sis.c
@@ -40,6 +40,7 @@
40#include <linux/device.h> 40#include <linux/device.h>
41#include <scsi/scsi_host.h> 41#include <scsi/scsi_host.h>
42#include <linux/libata.h> 42#include <linux/libata.h>
43#include "libata.h"
43 44
44#define DRV_NAME "sata_sis" 45#define DRV_NAME "sata_sis"
45#define DRV_VERSION "0.7" 46#define DRV_VERSION "0.7"
@@ -254,9 +255,6 @@ static void sis_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val)
254 255
255static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent) 256static int sis_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
256{ 257{
257 /* Provided by the PATA driver */
258 extern struct ata_port_info sis_info133;
259
260 static int printed_version; 258 static int printed_version;
261 struct ata_probe_ent *probe_ent = NULL; 259 struct ata_probe_ent *probe_ent = NULL;
262 int rc; 260 int rc;