summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-07-11 14:30:52 -0700
committerDavid S. Miller <davem@davemloft.net>2016-07-11 14:30:52 -0700
commitcf81b2ccad03a9477cf3fd135341642420d18620 (patch)
tree11e850b2f107c2469dee67125d91de3c72d50dfa
parenta536a6e13ecd0d6eb0ffc36c5d56555896617282 (diff)
downloadlinux-cf81b2ccad03a9477cf3fd135341642420d18620.tar.bz2
b53: Fix build warning.
drivers/net/dsa/b53/b53_srab.c: In function 'b53_srab_probe': >> drivers/net/dsa/b53/b53_srab.c:388:20: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] pdata->chip_id = (u32)of_id->data; ^ Reported-by: kbuild test robot <fengguang.wu@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/dsa/b53/b53_srab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/b53/b53_srab.c b/drivers/net/dsa/b53/b53_srab.c
index 2b304eaeb8e8..3e2d4a5fcd5a 100644
--- a/drivers/net/dsa/b53/b53_srab.c
+++ b/drivers/net/dsa/b53/b53_srab.c
@@ -393,7 +393,7 @@ static int b53_srab_probe(struct platform_device *pdev)
if (!pdata)
return -ENOMEM;
- pdata->chip_id = (u32)of_id->data;
+ pdata->chip_id = (u32)(unsigned long)of_id->data;
}
priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);