lkml.org 
[lkml]   [2007]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 69/75] Driver core: rename ktype_device
    Date
    This makes it a bit more sane when trying to figure out how to clean up
    the ktype mess.

    Based on a larger patch from Kay Sievers

    Cc: Kay Sievers <kay.sievers@vrfy.org>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
    ---
    drivers/base/core.c | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/base/core.c b/drivers/base/core.c
    index 65de221..c134341 100644
    --- a/drivers/base/core.c
    +++ b/drivers/base/core.c
    @@ -108,7 +108,7 @@ static void device_release(struct kobject * kobj)
    }
    }

    -static struct kobj_type ktype_device = {
    +static struct kobj_type device_ktype = {
    .release = device_release,
    .sysfs_ops = &dev_sysfs_ops,
    };
    @@ -118,7 +118,7 @@ static int dev_uevent_filter(struct kset *kset, struct kobject *kobj)
    {
    struct kobj_type *ktype = get_ktype(kobj);

    - if (ktype == &ktype_device) {
    + if (ktype == &device_ktype) {
    struct device *dev = to_dev(kobj);
    if (dev->uevent_suppress)
    return 0;
    @@ -405,7 +405,7 @@ static struct device_attribute devt_attr =
    * devices_subsys - structure to be registered with kobject core.
    */

    -decl_subsys(devices, &ktype_device, &device_uevent_ops);
    +decl_subsys(devices, &device_ktype, &device_uevent_ops);


    /**
    --
    1.5.3.4
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-10-13 01:03    [W:0.050 / U:0.400 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site