Commit 8c016bc3 authored by Woody Zhang's avatar Woody Zhang Committed by Greg Kroah-Hartman
Browse files

platform: replace magic number with macro PLATFORM_DEVID_NONE



Replace magic number with PLATFORM_DEVID_NONE to make it more
informative.

Signed-off-by: default avatarWoody Zhang <woodyzhang666@gmail.com>
Link: https://lore.kernel.org/r/20250330103627.2370771-2-woodyzhang666@gmail.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bcca368
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;