platform: replace magic number with macro PLATFORM_DEVID_NONE

Replace magic number with PLATFORM_DEVID_NONE to make it more
informative.

Signed-off-by: Woody Zhang <woodyzhang666@gmail.com>
Link: https://lore.kernel.org/r/20250330103627.2370771-2-woodyzhang666@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Woody Zhang
2025-03-30 18:36:27 +08:00
committed by Greg Kroah-Hartman
parent 5bcca36898
commit 8c016bc306

View File

@@ -982,7 +982,7 @@ struct platform_device * __init_or_module __platform_create_bundle(
struct platform_device *pdev;
int error;
pdev = platform_device_alloc(driver->driver.name, -1);
pdev = platform_device_alloc(driver->driver.name, PLATFORM_DEVID_NONE);
if (!pdev) {
error = -ENOMEM;
goto err_out;