Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Woody Zhang and committed by
Greg Kroah-Hartman
8c016bc3 5bcca368

+1 -1
+1 -1
drivers/base/platform.c
··· 982 982 struct platform_device *pdev; 983 983 int error; 984 984 985 - pdev = platform_device_alloc(driver->driver.name, -1); 985 + pdev = platform_device_alloc(driver->driver.name, PLATFORM_DEVID_NONE); 986 986 if (!pdev) { 987 987 error = -ENOMEM; 988 988 goto err_out;