diff options
author | Geliang Tang <geliangtang@163.com> | 2016-01-13 18:30:12 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-09 01:57:30 +0300 |
commit | 6908b45eafc480e9da8196f987b1d0f6c887a5d7 (patch) | |
tree | 0c9c058af12ca52b66e298062baa4ee0fc26ee77 /drivers/misc | |
parent | 85f4f39c80e9350da8a351e6ea36367fa9fb87a5 (diff) | |
download | linux-6908b45eafc480e9da8196f987b1d0f6c887a5d7.tar.xz |
GenWQE: use kobj_to_dev()
Use kobj_to_dev() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/genwqe/card_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/genwqe/card_sysfs.c b/drivers/misc/genwqe/card_sysfs.c index 6ab31eff0536..c24c9b7c1dd3 100644 --- a/drivers/misc/genwqe/card_sysfs.c +++ b/drivers/misc/genwqe/card_sysfs.c @@ -278,7 +278,7 @@ static umode_t genwqe_is_visible(struct kobject *kobj, struct attribute *attr, int n) { unsigned int j; - struct device *dev = container_of(kobj, struct device, kobj); + struct device *dev = kobj_to_dev(kobj); struct genwqe_dev *cd = dev_get_drvdata(dev); umode_t mode = attr->mode; |