soc: fsl: qe: fix sparse warnings for ucc.c
authorLi Yang <leoyang.li@nxp.com>
Thu, 12 Mar 2020 20:45:04 +0000 (15:45 -0500)
committerLi Yang <leoyang.li@nxp.com>
Wed, 25 Mar 2020 00:02:23 +0000 (19:02 -0500)
commitde66e4d87d98be7cab11d1a52a80cfb68ff20202
treeade930a786fce27c71e3dbf0d9067aee610b5d27
parent41ed69bf6cb32ba02be03449b18fa7c698cea3e4
soc: fsl: qe: fix sparse warnings for ucc.c

Fixes the following sparse warnings:

drivers/soc/fsl/qe/ucc.c:637:20: warning: incorrect type in assignment (different address spaces)
drivers/soc/fsl/qe/ucc.c:637:20:    expected struct qe_mux *qe_mux_reg
drivers/soc/fsl/qe/ucc.c:637:20:    got struct qe_mux [noderef] <asn:2> *
drivers/soc/fsl/qe/ucc.c:652:9: warning: incorrect type in argument 1 (different address spaces)
drivers/soc/fsl/qe/ucc.c:652:9:    expected void const volatile [noderef] <asn:2> *addr
drivers/soc/fsl/qe/ucc.c:652:9:    got restricted __be32 *
drivers/soc/fsl/qe/ucc.c:652:9: warning: incorrect type in argument 2 (different address spaces)
drivers/soc/fsl/qe/ucc.c:652:9:    expected void volatile [noderef] <asn:2> *addr
drivers/soc/fsl/qe/ucc.c:652:9:    got restricted __be32 *

Signed-off-by: Li Yang <leoyang.li@nxp.com>
Reviewed-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
drivers/soc/fsl/qe/ucc.c