• T
    driver-core: make devt_attr and uevent_attr static · ad6a1e1c
    Tejun Heo 提交于
    devt_attr and uevent_attr are either allocated dynamically with or
    embedded in device and class_device as they needed their owner field
    set to the module implementing the driver.  Now that sysfs implements
    immediate disconnect and owner field removed from struct attribute,
    there is no reason to do this.  Remove these attributes from
    [class_]device and use static attribute structures instead.
    Signed-off-by: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    ad6a1e1c
core.c 32.3 KB