summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 22:06:42 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-11-29 22:06:42 +0100
commit0e0d3d2c5f9901dad9f375614ab4362e95e631ba (patch)
tree9de113b0d23e7badcc7314b6b78df9fe573e2dff /drivers
parentfab82cb3f1e16f22a1910d380ef572e6fe0e9da9 (diff)
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 <fengguang.wu@intel.com> Cc: Guenter Roeck <groeck@chromium.org> Cc: Dmitry Torokhov <dtor@chromium.org> Cc: Julia Lawall <julia.lawall@lip6.fr> Cc: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/test/test_async_driver_probe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/test/test_async_driver_probe.c b/drivers/base/test/test_async_driver_probe.c
index 1c5eddda5cc2..304d5c2bd5e9 100644
--- a/drivers/base/test/test_async_driver_probe.c
+++ b/drivers/base/test/test_async_driver_probe.c
@@ -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;