summaryrefslogtreecommitdiffstats
path: root/drivers/zorro
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-06 10:28:39 -0500
committerGeert Uytterhoeven <geert@linux-m68k.org>2016-01-25 03:42:23 -0500
commita9c9d9aca4e7cf75d09faa098785ed991db41c65 (patch)
tree2d8636d25051f3c40f33afa480f5dda22ee16618 /drivers/zorro
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
zorro: Use kobj_to_dev()
Use kobj_to_dev() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Diffstat (limited to 'drivers/zorro')
-rw-r--r--drivers/zorro/zorro-sysfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/zorro/zorro-sysfs.c b/drivers/zorro/zorro-sysfs.c
index 36b210f9b6b2..9282dbf5abdb 100644
--- a/drivers/zorro/zorro-sysfs.c
+++ b/drivers/zorro/zorro-sysfs.c
@@ -65,8 +65,7 @@ static ssize_t zorro_read_config(struct file *filp, struct kobject *kobj,
65 struct bin_attribute *bin_attr, 65 struct bin_attribute *bin_attr,
66 char *buf, loff_t off, size_t count) 66 char *buf, loff_t off, size_t count)
67{ 67{
68 struct zorro_dev *z = to_zorro_dev(container_of(kobj, struct device, 68 struct zorro_dev *z = to_zorro_dev(kobj_to_dev(kobj));
69 kobj));
70 struct ConfigDev cd; 69 struct ConfigDev cd;
71 70
72 /* Construct a ConfigDev */ 71 /* Construct a ConfigDev */