summaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-pm8058.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-pm8058.c')
-rw-r--r--drivers/leds/leds-pm8058.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-pm8058.c b/drivers/leds/leds-pm8058.c
index a52674327857..8988ba3b2d65 100644
--- a/drivers/leds/leds-pm8058.c
+++ b/drivers/leds/leds-pm8058.c
@@ -106,7 +106,7 @@ static int pm8058_led_probe(struct platform_device *pdev)
if (!led)
return -ENOMEM;
- led->ledtype = (u32)of_device_get_match_data(&pdev->dev);
+ led->ledtype = (u32)(unsigned long)of_device_get_match_data(&pdev->dev);
map = dev_get_regmap(pdev->dev.parent, NULL);
if (!map) {