summaryrefslogtreecommitdiffstats
path: root/drivers/misc/genwqe/card_sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/genwqe/card_sysfs.c')
-rw-r--r--drivers/misc/genwqe/card_sysfs.c2
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;