mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
driver core: test_async: fix up typo found by 0-day
0-day pointed out a typo in the platform device registration logic, so fix it. Reported-by: kbuild test robot <[email protected]> Cc: Guenter Roeck <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Julia Lawall <[email protected]> Cc: Thierry Escande <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
fab82cb3f1
commit
0e0d3d2c5f
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ static int __init test_async_probe_init(void)
|
|||
calltime = ktime_get();
|
||||
sync_dev_1 = platform_device_register_simple("test_sync_driver", 1,
|
||||
NULL, 0);
|
||||
if (IS_ERR(async_dev_1)) {
|
||||
if (IS_ERR(sync_dev_1)) {
|
||||
error = PTR_ERR(sync_dev_1);
|
||||
pr_err("failed to create sync_dev_1: %d", error);
|
||||
goto err_unregister_sync_driver;
|
||||
|
|
|
|||
Loading…
Reference in a new issue