]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ALSA: hda - Mark reg op args as iomem
authorDylan Reid <dgreid@chromium.org>
Mon, 3 Mar 2014 04:44:01 +0000 (20:44 -0800)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Mar 2014 08:53:28 +0000 (09:53 +0100)
The ops to read and write registers should take pointers labeled as
__iomem.  Thanks to the sparse bot for catching this.

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_intel.c
sound/pci/hda/hda_priv.h

index 149c00b0032061db3fdc88013b106e23ae2e336e..77ca894f82845964192cdc20476002f3cdec63a0 100644 (file)
@@ -1431,32 +1431,32 @@ static void azx_firmware_cb(const struct firmware *fw, void *context)
  */
 
 /* PCI register access. */
-static void pci_azx_writel(u32 value, u32 *addr)
+static void pci_azx_writel(u32 value, u32 __iomem *addr)
 {
        writel(value, addr);
 }
 
-static u32 pci_azx_readl(u32 *addr)
+static u32 pci_azx_readl(u32 __iomem *addr)
 {
        return readl(addr);
 }
 
-static void pci_azx_writew(u16 value, u16 *addr)
+static void pci_azx_writew(u16 value, u16 __iomem *addr)
 {
        writew(value, addr);
 }
 
-static u16 pci_azx_readw(u16 *addr)
+static u16 pci_azx_readw(u16 __iomem *addr)
 {
        return readw(addr);
 }
 
-static void pci_azx_writeb(u8 value, u8 *addr)
+static void pci_azx_writeb(u8 value, u8 __iomem *addr)
 {
        writeb(value, addr);
 }
 
-static u8 pci_azx_readb(u8 *addr)
+static u8 pci_azx_readb(u8 __iomem *addr)
 {
        return readb(addr);
 }
index 198fa825fa0e147db8a88171ae7a88a7ef0fad0f..ba38b819f9847de7522de9171c1a7794aecc7a8f 100644 (file)
@@ -290,12 +290,12 @@ struct azx;
 /* Functions to read/write to hda registers. */
 struct hda_controller_ops {
        /* Register Access */
-       void (*reg_writel)(u32 value, u32 *addr);
-       u32 (*reg_readl)(u32 *addr);
-       void (*reg_writew)(u16 value, u16 *addr);
-       u16 (*reg_readw)(u16 *addr);
-       void (*reg_writeb)(u8 value, u8 *addr);
-       u8 (*reg_readb)(u8 *addr);
+       void (*reg_writel)(u32 value, u32 __iomem *addr);
+       u32 (*reg_readl)(u32 __iomem *addr);
+       void (*reg_writew)(u16 value, u16 __iomem *addr);
+       u16 (*reg_readw)(u16 __iomem *addr);
+       void (*reg_writeb)(u8 value, u8 __iomem *addr);
+       u8 (*reg_readb)(u8 __iomem *addr);
        /* Disable msi if supported, PCI only */
        int (*disable_msi_reset_irq)(struct azx *);
        /* Allocation ops */