Skip to content

Commit da7852f

Browse files
author
Fox Snowpatch
committed
1 parent 85ff933 commit da7852f

File tree

1 file changed

+2
-1
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+2
-1
lines changed

arch/powerpc/platforms/pseries/cmm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,9 @@ static int cmm_sysfs_register(struct device *dev)
419419
fail:
420420
while (--i >= 0)
421421
device_remove_file(dev, cmm_attrs[i]);
422-
device_unregister(dev);
422+
device_del(dev);
423423
subsys_unregister:
424+
put_device(dev);
424425
bus_unregister(&cmm_subsys);
425426
return rc;
426427
}

0 commit comments

Comments
 (0)