ASoC: fsl_ssi: Add missing __iomem annotations
Subsystems (3)
PATCH 1/1 ASoC: fsl_ssi: Add missing __iomem annotations
There are two places in the fsl_ssi driver where the pointer to the register set
is missing the __iomem annotation. Adding it fixes the following warnings from
sparse:
sound/soc/fsl/fsl_ssi.c:747:45: warning: incorrect type in initializer (different address spaces)
sound/soc/fsl/fsl_ssi.c:747:45: expected struct ccsr_ssi *ssi
sound/soc/fsl/fsl_ssi.c:747:45: got struct ccsr_ssi [noderef] <asn:2>*ssi
sound/soc/fsl/fsl_ssi.c:756:9: warning: incorrect type in argument 2 (different address spaces)
sound/soc/fsl/fsl_ssi.c:756:9: expected void volatile [noderef] <asn:2>*addr
sound/soc/fsl/fsl_ssi.c:756:9: got unsigned int *<noident>
sound/soc/fsl/fsl_ssi.c:759:9: warning: incorrect type in argument 2 (different address spaces)
sound/soc/fsl/fsl_ssi.c:759:9: expected void volatile [noderef] <asn:2>*addr
sound/soc/fsl/fsl_ssi.c:759:9: got unsigned int *<noident>
sound/soc/fsl/fsl_ssi.c:761:25: warning: incorrect type in argument 1 (different address spaces)
sound/soc/fsl/fsl_ssi.c:761:25: expected unsigned int [noderef] [usertype] <asn:2>*addr
sound/soc/fsl/fsl_ssi.c:761:25: got unsigned int *<noident>
sound/soc/fsl/fsl_ssi.c:769:45: warning: incorrect type in initializer (different address spaces)
sound/soc/fsl/fsl_ssi.c:769:45: expected struct ccsr_ssi *ssi
sound/soc/fsl/fsl_ssi.c:769:45: got struct ccsr_ssi [noderef] <asn:2>*ssi
sound/soc/fsl/fsl_ssi.c:775:9: warning: incorrect type in argument 2 (different address spaces)
sound/soc/fsl/fsl_ssi.c:775:9: expected void volatile [noderef] <asn:2>*addr
sound/soc/fsl/fsl_ssi.c:775:9: got unsigned int *<noident>
sound/soc/fsl/fsl_ssi.c:776:25: warning: incorrect type in argument 1 (different address spaces)
sound/soc/fsl/fsl_ssi.c:776:25: expected unsigned int [noderef] [usertype] <asn:2>*addr
sound/soc/fsl/fsl_ssi.c:776:25: got unsigned int *<noident>
sound/soc/fsl/fsl_ssi.c:781:16: warning: incorrect type in argument 1 (different address spaces)
sound/soc/fsl/fsl_ssi.c:781:16: expected void const volatile [noderef] <asn:2>*addr
sound/soc/fsl/fsl_ssi.c:781:16: got unsigned int *<noident>
--- sound/soc/fsl/fsl_ssi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/fsl/fsl_ssi.c +2 -2
@@ -751,7 +751,7 @@ static void fsl_ssi_ac97_init(void)static void fsl_ssi_ac97_write (struct snd_ac97 *ac97,unsigned short reg,unsigned short val) { -struct ccsr_ssi *ssi = fsl_ac97_data->ssi; +struct ccsr_ssi __iomem *ssi = fsl_ac97_data->ssi;unsigned int lreg;unsigned int lval;
@@ -773,7 +773,7 @@ static void fsl_ssi_ac97_write(struct snd_ac97 *ac97, unsigned short reg,static unsigned short fsl_ssi_ac97_read (struct snd_ac97 *ac97,unsigned short reg) { -struct ccsr_ssi *ssi = fsl_ac97_data->ssi; +struct ccsr_ssi __iomem *ssi = fsl_ac97_data->ssi;unsigned short val =-1 ;unsigned int lreg;
Signature · 1 line
1.8.0