summaryrefslogtreecommitdiffstats
path: root/drivers/zorro/zorro-sysfs.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-06 23:28:39 +0800
committerGeert Uytterhoeven <geert@linux-m68k.org>2016-01-25 09:42:23 +0100
commita9c9d9aca4e7cf75d09faa098785ed991db41c65 (patch)
tree2d8636d25051f3c40f33afa480f5dda22ee16618 /drivers/zorro/zorro-sysfs.c
parent92e963f50fc74041b5e9e744c330dca48e04f08d (diff)
downloadlinux-a9c9d9aca4e7cf75d09faa098785ed991db41c65.tar.gz
linux-a9c9d9aca4e7cf75d09faa098785ed991db41c65.tar.bz2
linux-a9c9d9aca4e7cf75d09faa098785ed991db41c65.zip
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/zorro-sysfs.c')
-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,
struct bin_attribute *bin_attr,
char *buf, loff_t off, size_t count)
{
- struct zorro_dev *z = to_zorro_dev(container_of(kobj, struct device,
- kobj));
+ struct zorro_dev *z = to_zorro_dev(kobj_to_dev(kobj));
struct ConfigDev cd;
/* Construct a ConfigDev */