mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
sparc: explicitly cast negative phandle checks to s32
When we switched sparc from using 'int's to 'phandle's (which is a u32), we neglected to do anything with the various checks for -1. For those tests, explicitly cast the phandles to s32. Signed-off-by: Andres Salomon <[email protected]> Acked-by: David S. Miller <[email protected]> Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
301a3da358
commit
4a3a255289
7 changed files with 25 additions and 24 deletions
|
|
@ -467,7 +467,7 @@ static int jsflash_init(void)
|
|||
|
||||
node = prom_getchild(prom_root_node);
|
||||
node = prom_searchsiblings(node, "flash-memory");
|
||||
if (node != 0 && node != -1) {
|
||||
if (node != 0 && (s32)node != -1) {
|
||||
if (prom_getproperty(node, "reg",
|
||||
(char *)®0, sizeof(reg0)) == -1) {
|
||||
printk("jsflash: no \"reg\" property\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue