Skip to content

Commit

Permalink
driver core: test_async: fix up typo found by 0-day
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gregkh committed Nov 29, 2016
1 parent fab82cb commit 0e0d3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/test/test_async_driver_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e0d3d2

Please sign in to comment.