diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-07-18 16:51:14 +1000 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-07-19 17:45:50 +1000 |
commit | 352738f78e391a0c20fd4e438415d8e51008e655 (patch) | |
tree | f213c40800b9a42c758f711128dba6604a10b598 /hdata | |
parent | 4b2af1e58050213a6cb80fd63a391287d87e3ab1 (diff) | |
download | skiboot-352738f78e391a0c20fd4e438415d8e51008e655.zip skiboot-352738f78e391a0c20fd4e438415d8e51008e655.tar.gz skiboot-352738f78e391a0c20fd4e438415d8e51008e655.tar.bz2 |
sparse: hdata/fsp: u8 doesn't have endian
hdata/fsp.c:271:9: warning: incorrect type in argument 1 (different base types)
hdata/fsp.c:271:9: expected restricted beint32_t [usertype] be_val
hdata/fsp.c:271:9: got unsigned char const [usertype] uart_int_number
hdata/fsp.c:271:9: warning: incorrect type in argument 1 (different base types)
hdata/fsp.c:271:9: expected restricted beint32_t [usertype] be_val
hdata/fsp.c:271:9: got unsigned char const [usertype] uart_int_number
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/fsp.c | 2 | ||||
-rw-r--r-- | hdata/test/op920.wsp.dts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/hdata/fsp.c b/hdata/fsp.c index 2bf691f..efa3a48 100644 --- a/hdata/fsp.c +++ b/hdata/fsp.c @@ -269,7 +269,7 @@ static void add_uart(const struct spss_iopath *iopath, struct dt_node *lpc) dt_add_property_cells(serial, "clock-frequency", be32_to_cpu(iopath->lpc.uart_clk)); dt_add_property_cells(serial, "interrupts", - be32_to_cpu(iopath->lpc.uart_int_number)); + iopath->lpc.uart_int_number); dt_add_property_string(serial, "device_type", "serial"); diff --git a/hdata/test/op920.wsp.dts b/hdata/test/op920.wsp.dts index 4c61b0e..fbc5a39 100644 --- a/hdata/test/op920.wsp.dts +++ b/hdata/test/op920.wsp.dts @@ -3254,7 +3254,7 @@ compatible = "ns16550"; current-speed = <0x1c200>; clock-frequency = <0x1c2000>; - interrupts = <0x4000000>; + interrupts = <0x04>; device_type = "serial"; }; }; |