ALSA: ctxfi: sparse warning

fixed sparse warning of incorrect type (different address spaces) in
cthw20k1.c and cthw20k2.c which was being actually caused as mem_base
was of the type unsigned long.

Again as mem_base was previously unsigned long , so it required many
typecasts in the code to convert interger to pointer.

Now after giving the correct type of mem_base as void __iomem *
we can also remove those typecasts maintaining the same functionality
and logic of the code.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Sudip Mukherjee
2014-09-23 16:30:24 +05:30
committed by Takashi Iwai
父節點 95f72cf2cd
當前提交 7a7686bd0d
共有 3 個文件被更改,包括 10 次插入10 次删除

查看文件

@@ -186,7 +186,7 @@ struct hw {
struct pci_dev *pci; /* the pci kernel structure of this card */
int irq;
unsigned long io_base;
unsigned long mem_base;
void __iomem *mem_base;
enum CHIPTYP chip_type;
enum CTCARDS model;