Fix up a pointer-integer size mismatch warning in tps65217_probe()
Subsystems (2)
PATCH 4/7 Fix up a pointer-integer size mismatch warning in tps65217_probe()
Fix up the following pointer-integer size mismatch warning in tps65217_probe():
drivers/mfd/tps65217.c: In function 'tps65217_probe': drivers/mfd/tps65217.c:173:13: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] chip_id = (unsigned int)match->data; ^
Signed-off-by David Howells <[email protected]>
cc AnilKumar Ch <[email protected]>
cc Samuel Ortiz <[email protected]>
---
drivers/mfd/tps65217.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/tps65217.c +1 -1
@@ -170,7 +170,7 @@ static int tps65217_probe(struct i2c_client *client, "Failed to find matching dt id\n");return -EINVAL ; } - chip_id = (unsigned int )match->data; + chip_id = (unsigned int )(unsigned long )match->data; status_off =of_property_read_bool (client->dev.of_node,"ti,pmic-shutdown-controller" ); }