diff options
Diffstat (limited to 'drivers/pps/pps.c')
-rw-r--r-- | drivers/pps/pps.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pps/pps.c b/drivers/pps/pps.c index 98fbe62694d4..e771487132f7 100644 --- a/drivers/pps/pps.c +++ b/drivers/pps/pps.c | |||
@@ -327,8 +327,10 @@ int pps_register_cdev(struct pps_device *pps) | |||
327 | } | 327 | } |
328 | pps->dev = device_create(pps_class, pps->info.dev, devt, pps, | 328 | pps->dev = device_create(pps_class, pps->info.dev, devt, pps, |
329 | "pps%d", pps->id); | 329 | "pps%d", pps->id); |
330 | if (IS_ERR(pps->dev)) | 330 | if (IS_ERR(pps->dev)) { |
331 | err = PTR_ERR(pps->dev); | ||
331 | goto del_cdev; | 332 | goto del_cdev; |
333 | } | ||
332 | 334 | ||
333 | pps->dev->release = pps_device_destruct; | 335 | pps->dev->release = pps_device_destruct; |
334 | 336 | ||