]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mfd: da9063: Use PLATFORM_DEVID_NONE
authorMarek Vasut <marek.vasut@gmail.com>
Mon, 11 Jun 2018 11:58:42 +0000 (13:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Wed, 4 Jul 2018 06:15:59 +0000 (07:15 +0100)
Use PLATFORM_DEVID_NONE instead of -1 in mfd_add_devices.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9063-core.c

index 76258e5709f85f9e04f72050715d82d284f5515a..f57558590283c40b27924c6eda1c72078ffb0038 100644 (file)
@@ -226,9 +226,9 @@ int da9063_device_init(struct da9063 *da9063, unsigned int irq)
 
        da9063->irq_base = regmap_irq_chip_get_base(da9063->regmap_irq);
 
-       ret = devm_mfd_add_devices(da9063->dev, -1, da9063_devs,
-                                  ARRAY_SIZE(da9063_devs), NULL,
-                                  da9063->irq_base, NULL);
+       ret = devm_mfd_add_devices(da9063->dev, PLATFORM_DEVID_NONE,
+                                  da9063_devs, ARRAY_SIZE(da9063_devs),
+                                  NULL, da9063->irq_base, NULL);
        if (ret)
                dev_err(da9063->dev, "Cannot add MFD cells\n");