diff options
-rw-r--r-- | sound/pci/ctxfi/cthardware.h | 2 | ||||
-rw-r--r-- | sound/pci/ctxfi/cthw20k1.c | 6 | ||||
-rw-r--r-- | sound/pci/ctxfi/cthw20k2.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/sound/pci/ctxfi/cthardware.h b/sound/pci/ctxfi/cthardware.h index 5977e9a24b5c..c5ded6a6654f 100644 --- a/sound/pci/ctxfi/cthardware.h +++ b/sound/pci/ctxfi/cthardware.h | |||
@@ -186,7 +186,7 @@ struct hw { | |||
186 | struct pci_dev *pci; /* the pci kernel structure of this card */ | 186 | struct pci_dev *pci; /* the pci kernel structure of this card */ |
187 | int irq; | 187 | int irq; |
188 | unsigned long io_base; | 188 | unsigned long io_base; |
189 | unsigned long mem_base; | 189 | void __iomem *mem_base; |
190 | 190 | ||
191 | enum CHIPTYP chip_type; | 191 | enum CHIPTYP chip_type; |
192 | enum CTCARDS model; | 192 | enum CTCARDS model; |
diff --git a/sound/pci/ctxfi/cthw20k1.c b/sound/pci/ctxfi/cthw20k1.c index 71d496f780e3..8fc524fbaeab 100644 --- a/sound/pci/ctxfi/cthw20k1.c +++ b/sound/pci/ctxfi/cthw20k1.c | |||
@@ -1802,7 +1802,7 @@ static int uaa_to_xfi(struct pci_dev *pci) | |||
1802 | unsigned int is_uaa; | 1802 | unsigned int is_uaa; |
1803 | unsigned int data[4] = {0}; | 1803 | unsigned int data[4] = {0}; |
1804 | unsigned int io_base; | 1804 | unsigned int io_base; |
1805 | void *mem_base; | 1805 | void __iomem *mem_base; |
1806 | int i; | 1806 | int i; |
1807 | const u32 CTLX = CTLBITS('C', 'T', 'L', 'X'); | 1807 | const u32 CTLX = CTLBITS('C', 'T', 'L', 'X'); |
1808 | const u32 CTL_ = CTLBITS('C', 'T', 'L', '-'); | 1808 | const u32 CTL_ = CTLBITS('C', 'T', 'L', '-'); |
@@ -1984,9 +1984,9 @@ static int hw_card_shutdown(struct hw *hw) | |||
1984 | hw->irq = -1; | 1984 | hw->irq = -1; |
1985 | 1985 | ||
1986 | if (hw->mem_base) | 1986 | if (hw->mem_base) |
1987 | iounmap((void *)hw->mem_base); | 1987 | iounmap(hw->mem_base); |
1988 | 1988 | ||
1989 | hw->mem_base = (unsigned long)NULL; | 1989 | hw->mem_base = NULL; |
1990 | 1990 | ||
1991 | if (hw->io_base) | 1991 | if (hw->io_base) |
1992 | pci_release_regions(hw->pci); | 1992 | pci_release_regions(hw->pci); |
diff --git a/sound/pci/ctxfi/cthw20k2.c b/sound/pci/ctxfi/cthw20k2.c index df2d8c5eb926..b2c5d5a05a95 100644 --- a/sound/pci/ctxfi/cthw20k2.c +++ b/sound/pci/ctxfi/cthw20k2.c | |||
@@ -2045,8 +2045,8 @@ static int hw_card_start(struct hw *hw) | |||
2045 | goto error1; | 2045 | goto error1; |
2046 | 2046 | ||
2047 | hw->io_base = pci_resource_start(hw->pci, 2); | 2047 | hw->io_base = pci_resource_start(hw->pci, 2); |
2048 | hw->mem_base = (unsigned long)ioremap(hw->io_base, | 2048 | hw->mem_base = ioremap(hw->io_base, |
2049 | pci_resource_len(hw->pci, 2)); | 2049 | pci_resource_len(hw->pci, 2)); |
2050 | if (!hw->mem_base) { | 2050 | if (!hw->mem_base) { |
2051 | err = -ENOENT; | 2051 | err = -ENOENT; |
2052 | goto error2; | 2052 | goto error2; |
@@ -2106,9 +2106,9 @@ static int hw_card_shutdown(struct hw *hw) | |||
2106 | hw->irq = -1; | 2106 | hw->irq = -1; |
2107 | 2107 | ||
2108 | if (hw->mem_base) | 2108 | if (hw->mem_base) |
2109 | iounmap((void *)hw->mem_base); | 2109 | iounmap(hw->mem_base); |
2110 | 2110 | ||
2111 | hw->mem_base = (unsigned long)NULL; | 2111 | hw->mem_base = NULL; |
2112 | 2112 | ||
2113 | if (hw->io_base) | 2113 | if (hw->io_base) |
2114 | pci_release_regions(hw->pci); | 2114 | pci_release_regions(hw->pci); |
@@ -2228,12 +2228,12 @@ static int hw_resume(struct hw *hw, struct card_conf *info) | |||
2228 | 2228 | ||
2229 | static u32 hw_read_20kx(struct hw *hw, u32 reg) | 2229 | static u32 hw_read_20kx(struct hw *hw, u32 reg) |
2230 | { | 2230 | { |
2231 | return readl((void *)(hw->mem_base + reg)); | 2231 | return readl(hw->mem_base + reg); |
2232 | } | 2232 | } |
2233 | 2233 | ||
2234 | static void hw_write_20kx(struct hw *hw, u32 reg, u32 data) | 2234 | static void hw_write_20kx(struct hw *hw, u32 reg, u32 data) |
2235 | { | 2235 | { |
2236 | writel(data, (void *)(hw->mem_base + reg)); | 2236 | writel(data, hw->mem_base + reg); |
2237 | } | 2237 | } |
2238 | 2238 | ||
2239 | static struct hw ct20k2_preset = { | 2239 | static struct hw ct20k2_preset = { |