mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 14:52:05 +00:00
mfd: mt6397: Use PLATFORM_DEVID_NONE macro instead of -1
Use the correct macro when adding the MFD devices instead of using directly '-1' value. Signed-off-by: Fabien Parent <fparent@baylibre.com> Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
cbfdc839ea
commit
eb00f70d77
@ -189,16 +189,16 @@ static int mt6397_probe(struct platform_device *pdev)
|
|||||||
|
|
||||||
switch (pmic->chip_id) {
|
switch (pmic->chip_id) {
|
||||||
case MT6323_CHIP_ID:
|
case MT6323_CHIP_ID:
|
||||||
ret = devm_mfd_add_devices(&pdev->dev, -1, mt6323_devs,
|
ret = devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE,
|
||||||
ARRAY_SIZE(mt6323_devs), NULL,
|
mt6323_devs, ARRAY_SIZE(mt6323_devs),
|
||||||
0, pmic->irq_domain);
|
NULL, 0, pmic->irq_domain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MT6391_CHIP_ID:
|
case MT6391_CHIP_ID:
|
||||||
case MT6397_CHIP_ID:
|
case MT6397_CHIP_ID:
|
||||||
ret = devm_mfd_add_devices(&pdev->dev, -1, mt6397_devs,
|
ret = devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_NONE,
|
||||||
ARRAY_SIZE(mt6397_devs), NULL,
|
mt6397_devs, ARRAY_SIZE(mt6397_devs),
|
||||||
0, pmic->irq_domain);
|
NULL, 0, pmic->irq_domain);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user