Skip to content

Commit 8c016bc

Browse files
Woody Zhanggregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5bcca36 commit 8c016bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/base/platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,7 @@ struct platform_device * __init_or_module __platform_create_bundle(
982982
struct platform_device *pdev;
983983
int error;
984984

985-
pdev = platform_device_alloc(driver->driver.name, -1);
985+
pdev = platform_device_alloc(driver->driver.name, PLATFORM_DEVID_NONE);
986986
if (!pdev) {
987987
error = -ENOMEM;
988988
goto err_out;

0 commit comments

Comments
 (0)