diff --git a/drivers/regulator/qpnp-lcdb-regulator.c b/drivers/regulator/qpnp-lcdb-regulator.c index a26d59cb12463..d12f6567e612d 100644 --- a/drivers/regulator/qpnp-lcdb-regulator.c +++ b/drivers/regulator/qpnp-lcdb-regulator.c @@ -2731,7 +2731,7 @@ static int qpnp_lcdb_regulator_probe(struct platform_device *pdev) return -EINVAL; } - lcdb->subtype = (u8)of_device_get_match_data(&pdev->dev); + lcdb->subtype = (u8)(long)of_device_get_match_data(&pdev->dev); lcdb->dev = &pdev->dev; lcdb->pdev = pdev; dev_id = of_match_device(lcdb->dev->driver->of_match_table, lcdb->dev);