ata: fix sparse warning in pata_cs5536.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 14 Feb 2008 05:14:23 +0000 (21:14 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 15 Feb 2008 18:51:27 +0000 (13:51 -0500)
Everybody passes in a u32...why fight it.

drivers/ata/pata_cs5536.c:124:26: warning: incorrect type in argument 3 (different signedness)
drivers/ata/pata_cs5536.c:124:26:    expected int *val
drivers/ata/pata_cs5536.c:124:26:    got unsigned int *<noident>

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/pata_cs5536.c

index 89fc8db1fb32272ed222476ebb9246d94b4c3e43..1c4ff9b52b5c0b0bc39c27d2eaf73c5da601cda6 100644 (file)
@@ -85,7 +85,7 @@ static const u8 pci_reg[4] = {
        PCI_IDE_CFG, PCI_IDE_DTC, PCI_IDE_CAST, PCI_IDE_ETC,
 };
 
-static inline int cs5536_read(struct pci_dev *pdev, int reg, int *val)
+static inline int cs5536_read(struct pci_dev *pdev, int reg, u32 *val)
 {
        if (unlikely(use_msr)) {
                u32 dummy;