forked from Minki/linux
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>
This commit is contained in:
parent
92e963f50f
commit
a9c9d9aca4
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user