• Jonathan Corbet's avatar
    [PATCH] cdev 2/2: hide cdev->kobj · fa31a260
    Jonathan Corbet authored
    The existing cdev interface requires users to deal with the embedded
    kobject in two places:
    
    - The kobject name field must be set before adding the cdev, and
    - Should cdev_add() fail, a call to kobject_put() is required.
    
    IMO, this exposure of the embedded kobject makes the interface more brittle
    and harder to understand.  It's also unnecessary.  With the removal of
    /sys/cdev, a call to cdev_del() will nicely replace kobject_put(), and the
    name setting is easily wrapped.
    
    This is against 2.6.4, but depends on the /sys/cdev removal patch.
    fa31a260
dv1394.c 74.6 KB