diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-14 23:24:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-17 09:10:49 +0300 |
commit | 87e715deb8e24bf1a6a9a1babaf465c28c93889c (patch) | |
tree | 301f21d1a648dc9a84c1eb65df4c2e77fc79cb4a /drivers/zorro/zorro.c | |
parent | a553910fbaafbd7c18823c0f1e5dcc2d12c9fd2a (diff) | |
download | linux-87e715deb8e24bf1a6a9a1babaf465c28c93889c.tar.xz |
zorro: stop creating attributes by hand
Instead of creating attributes one by one, define attribute_group array
and attach it to bus->dev_groups, so that all needed attributes are created
automatically when a new device is registered on the bus.
Also switch to using standard DEVICE_ATTR_RO() macros.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/zorro/zorro.c')
-rw-r--r-- | drivers/zorro/zorro.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/zorro/zorro.c b/drivers/zorro/zorro.c index d295d9878dff..cc1b1ac57d61 100644 --- a/drivers/zorro/zorro.c +++ b/drivers/zorro/zorro.c @@ -197,9 +197,6 @@ static int __init amiga_zorro_probe(struct platform_device *pdev) put_device(&z->dev); continue; } - error = zorro_create_sysfs_dev_files(z); - if (error) - dev_err(&z->dev, "Error creating sysfs files\n"); } /* Mark all available Zorro II memory */ |