mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue