diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-02-23 22:49:53 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2024-05-10 17:39:16 +0300 |
commit | f197c75fe0dc5bc472973207bb193a0f6ac1e264 (patch) | |
tree | 703044eb2f7e0e06be63ba75169b468cd2f30573 /drivers/mfd | |
parent | f0336cc4f139d0faa3e19b400c9ae1d2d177f692 (diff) | |
download | linux-f197c75fe0dc5bc472973207bb193a0f6ac1e264.tar.xz |
mfd: kempld: Use PLATFORM_DEVID_NONE instead of -1
Use the `PLATFORM_DEVID_NONE` constant instead of hard-coding -1
when creating a platform device.
No functional changes are intended.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240223195113.880121-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/kempld-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/kempld-core.c b/drivers/mfd/kempld-core.c index e207a62d6577..c3bc61dcd098 100644 --- a/drivers/mfd/kempld-core.c +++ b/drivers/mfd/kempld-core.c @@ -109,7 +109,7 @@ static int kempld_register_cells_generic(struct kempld_device_data *pld) if (pld->feature_mask & KEMPLD_FEATURE_MASK_UART) devs[i++].name = kempld_dev_names[KEMPLD_UART]; - return mfd_add_devices(pld->dev, -1, devs, i, NULL, 0, NULL); + return mfd_add_devices(pld->dev, PLATFORM_DEVID_NONE, devs, i, NULL, 0, NULL); } static struct resource kempld_ioresource = { |