mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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>
This commit is contained in:
parent
f0336cc4f1
commit
f197c75fe0
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user