mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 16:40:22 +00:00
pinctrl: fix qcom ssbi drivers for 64-bit compilation
When building pinctrl-ssbi-gpio and pinctrl-ssbi-mpp for ARM64, we get a compile warning about invalid types: drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c: In function 'pm8xxx_gpio_probe': drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:675:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c: In function 'pm8xxx_mpp_probe': drivers/pinctrl/qcom/pinctrl-ssbi-mpp.c:766:17: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] This changes the code so we cast the pointer to 'unsigned long', which is the right thing to do here. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
0563df2ce7
commit
c3dd25cc78
@ -672,7 +672,7 @@ static int pm8xxx_gpio_probe(struct platform_device *pdev)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
pctrl->dev = &pdev->dev;
|
pctrl->dev = &pdev->dev;
|
||||||
pctrl->npins = (unsigned)of_device_get_match_data(&pdev->dev);
|
pctrl->npins = (unsigned long)of_device_get_match_data(&pdev->dev);
|
||||||
|
|
||||||
pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL);
|
pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL);
|
||||||
if (!pctrl->regmap) {
|
if (!pctrl->regmap) {
|
||||||
|
@ -763,7 +763,7 @@ static int pm8xxx_mpp_probe(struct platform_device *pdev)
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
pctrl->dev = &pdev->dev;
|
pctrl->dev = &pdev->dev;
|
||||||
pctrl->npins = (unsigned)of_device_get_match_data(&pdev->dev);
|
pctrl->npins = (unsigned long)of_device_get_match_data(&pdev->dev);
|
||||||
|
|
||||||
pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL);
|
pctrl->regmap = dev_get_regmap(pdev->dev.parent, NULL);
|
||||||
if (!pctrl->regmap) {
|
if (!pctrl->regmap) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user