Commit fbdb5eac authored by Joel Stanley's avatar Joel Stanley Committed by Benjamin Herrenschmidt

fsi: master-hub: Fix sparse warnings

fsi-master-hub.c:128:13: warning: incorrect type in assignment (different base types)
fsi-master-hub.c:128:13:    expected unsigned int [unsigned] [usertype] cmd
fsi-master-hub.c:128:13:    got restricted __be32 [usertype] <noident>
fsi-master-hub.c:208:13: warning: incorrect type in assignment (different base types)
fsi-master-hub.c:208:13:    expected restricted __be32 [addressable] [assigned] [usertype] reg
fsi-master-hub.c:208:13:    got int
Signed-off-by: default avatarJoel Stanley <joel@jms.id.au>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 29925138
...@@ -122,7 +122,8 @@ static int hub_master_write(struct fsi_master *master, int link, ...@@ -122,7 +122,8 @@ static int hub_master_write(struct fsi_master *master, int link,
static int hub_master_break(struct fsi_master *master, int link) static int hub_master_break(struct fsi_master *master, int link)
{ {
uint32_t addr, cmd; uint32_t addr;
__be32 cmd;
addr = 0x4; addr = 0x4;
cmd = cpu_to_be32(0xc0de0000); cmd = cpu_to_be32(0xc0de0000);
...@@ -205,7 +206,7 @@ static int hub_master_init(struct fsi_master_hub *hub) ...@@ -205,7 +206,7 @@ static int hub_master_init(struct fsi_master_hub *hub)
if (rc) if (rc)
return rc; return rc;
reg = ~0; reg = cpu_to_be32(~0);
rc = fsi_device_write(dev, FSI_MSENP0, &reg, sizeof(reg)); rc = fsi_device_write(dev, FSI_MSENP0, &reg, sizeof(reg));
if (rc) if (rc)
return rc; return rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment