aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sata_sil.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/sata_sil.c')
-rw-r--r--drivers/scsi/sata_sil.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c
index ba98a175ee3a..435f7e0085ec 100644
--- a/drivers/scsi/sata_sil.c
+++ b/drivers/scsi/sata_sil.c
@@ -41,6 +41,7 @@
41#include <linux/blkdev.h> 41#include <linux/blkdev.h>
42#include <linux/delay.h> 42#include <linux/delay.h>
43#include <linux/interrupt.h> 43#include <linux/interrupt.h>
44#include <linux/device.h>
44#include "scsi.h" 45#include "scsi.h"
45#include <scsi/scsi_host.h> 46#include <scsi/scsi_host.h>
46#include <linux/libata.h> 47#include <linux/libata.h>
@@ -150,7 +151,7 @@ static Scsi_Host_Template sil_sht = {
150 .ordered_flush = 1, 151 .ordered_flush = 1,
151}; 152};
152 153
153static struct ata_port_operations sil_ops = { 154static const struct ata_port_operations sil_ops = {
154 .port_disable = ata_port_disable, 155 .port_disable = ata_port_disable,
155 .dev_config = sil_dev_config, 156 .dev_config = sil_dev_config,
156 .tf_load = ata_tf_load, 157 .tf_load = ata_tf_load,
@@ -289,7 +290,7 @@ static inline unsigned long sil_scr_addr(struct ata_port *ap, unsigned int sc_re
289 290
290static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg) 291static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg)
291{ 292{
292 void *mmio = (void *) sil_scr_addr(ap, sc_reg); 293 void __iomem *mmio = (void __iomem *) sil_scr_addr(ap, sc_reg);
293 if (mmio) 294 if (mmio)
294 return readl(mmio); 295 return readl(mmio);
295 return 0xffffffffU; 296 return 0xffffffffU;
@@ -297,7 +298,7 @@ static u32 sil_scr_read (struct ata_port *ap, unsigned int sc_reg)
297 298
298static void sil_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val) 299static void sil_scr_write (struct ata_port *ap, unsigned int sc_reg, u32 val)
299{ 300{
300 void *mmio = (void *) sil_scr_addr(ap, sc_reg); 301 void *mmio = (void __iomem *) sil_scr_addr(ap, sc_reg);
301 if (mmio) 302 if (mmio)
302 writel(val, mmio); 303 writel(val, mmio);
303} 304}
@@ -386,7 +387,7 @@ static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
386 u8 cls; 387 u8 cls;
387 388
388 if (!printed_version++) 389 if (!printed_version++)
389 printk(KERN_DEBUG DRV_NAME " version " DRV_VERSION "\n"); 390 dev_printk(KERN_DEBUG, &pdev->dev, "version " DRV_VERSION "\n");
390 391
391 /* 392 /*
392 * If this driver happens to only be useful on Apple's K2, then 393 * If this driver happens to only be useful on Apple's K2, then
@@ -463,8 +464,8 @@ static int sil_init_one (struct pci_dev *pdev, const struct pci_device_id *ent)
463 writeb(cls, mmio_base + SIL_FIFO_W3); 464 writeb(cls, mmio_base + SIL_FIFO_W3);
464 } 465 }
465 } else 466 } else
466 printk(KERN_WARNING DRV_NAME "(%s): cache line size not set. Driver may not function\n", 467 dev_printk(KERN_WARNING, &pdev->dev,
467 pci_name(pdev)); 468 "cache line size not set. Driver may not function\n");
468 469
469 if (ent->driver_data == sil_3114) { 470 if (ent->driver_data == sil_3114) {
470 irq_mask = SIL_MASK_4PORT; 471 irq_mask = SIL_MASK_4PORT;