aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/fieldbus/anybuss/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/fieldbus/anybuss/host.c')
-rw-r--r--drivers/staging/fieldbus/anybuss/host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/fieldbus/anybuss/host.c b/drivers/staging/fieldbus/anybuss/host.c
index f69dc4930457..b7a91bdef6f4 100644
--- a/drivers/staging/fieldbus/anybuss/host.c
+++ b/drivers/staging/fieldbus/anybuss/host.c
@@ -1384,7 +1384,7 @@ anybuss_host_common_probe(struct device *dev,
goto err_device;
return cd;
err_device:
- device_unregister(&cd->client->dev);
+ put_device(&cd->client->dev);
err_kthread:
kthread_stop(cd->qthread);
err_reset: