mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 4/7] Fix up a pointer-integer size mismatch warning in tps65217_probe()
@ 2014-01-03 16:07 David Howells
  0 siblings, 0 replies; only message in thread
From: David Howells @ 2014-01-03 16:07 UTC (permalink / raw)
  To: akpm; +Cc: dhowells, Samuel Ortiz, AnilKumar Ch, linux-kernel

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 <dhowells@redhat.com>
cc: AnilKumar Ch <anilkumar@ti.com>
cc: Samuel Ortiz <sameo@linux.intel.com>
---

 drivers/mfd/tps65217.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c
index b7be0b295575..66195edc0ef4 100644
--- a/drivers/mfd/tps65217.c
+++ b/drivers/mfd/tps65217.c
@@ -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");
 	}


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-03 16:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-03 16:07 [PATCH 4/7] Fix up a pointer-integer size mismatch warning in tps65217_probe() David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®