diff options
author | Marek Vasut <marek.vasut@gmail.com> | 2018-06-11 13:58:42 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-07-04 08:15:59 +0200 |
commit | 152bed762ad95373279dc15044706f59c2f39638 (patch) | |
tree | 2dcf14c4e81e92851c2c95389caa5725f3af71e1 /drivers | |
parent | mfd: da9063: Use REGMAP_IRQ_REG (diff) | |
download | linux-152bed762ad95373279dc15044706f59c2f39638.tar.xz linux-152bed762ad95373279dc15044706f59c2f39638.zip |
mfd: da9063: Use PLATFORM_DEVID_NONE
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/da9063-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mfd/da9063-core.c b/drivers/mfd/da9063-core.c index 76258e5709f8..f57558590283 100644 --- a/drivers/mfd/da9063-core.c +++ b/drivers/mfd/da9063-core.c @@ -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"); |