diff --git a/drivers/power/supply/qcom/smb1390-charger-psy.c b/drivers/power/supply/qcom/smb1390-charger-psy.c index 2ba33936e048..7d794858a04a 100644 --- a/drivers/power/supply/qcom/smb1390-charger-psy.c +++ b/drivers/power/supply/qcom/smb1390-charger-psy.c @@ -2097,7 +2097,7 @@ static int smb1390_probe(struct platform_device *pdev) } platform_set_drvdata(pdev, chip); - chip->cp_role = (int)of_device_get_match_data(chip->dev); + chip->cp_role = (long int)of_device_get_match_data(chip->dev); switch (chip->cp_role) { case CP_MASTER: rc = smb1390_master_probe(chip);