Skip to content

Commit e1e1e9b

Browse files
committed
bus: ti-sysc: Fix build warning for 64-bit build
Fix "warning: cast from pointer to integer of different size" on 64-bit builds. Note that this is a cosmetic fix at this point as the driver is not yet used for 64-bit systems. Fixes: feaa8ba ("bus: ti-sysc: Implement SoC revision handling") Reviewed-by: Dhruva Gole <[email protected]> Reviewed-by: Nishanth Menon <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
1 parent 99f13d7 commit e1e1e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/bus/ti-sysc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3104,7 +3104,7 @@ static int sysc_init_static_data(struct sysc *ddata)
31043104

31053105
match = soc_device_match(sysc_soc_match);
31063106
if (match && match->data)
3107-
sysc_soc->soc = (int)match->data;
3107+
sysc_soc->soc = (enum sysc_soc)match->data;
31083108

31093109
/*
31103110
* Check and warn about possible old incomplete dtb. We now want to see

0 commit comments

Comments
 (0)