diff options
author | Quentin Lambert <lambert.quentin@gmail.com> | 2015-06-12 11:38:41 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-06-12 21:46:17 +0300 |
commit | a038b97951d399685e18a6dc53dee62b42134a0a (patch) | |
tree | 0e9b9357e94b5dd9efd2fc389cca57bd88a85291 /sound/aoa/soundbus/core.c | |
parent | cc1b76ed32607ba378986931e73b64231085816f (diff) | |
download | linux-a038b97951d399685e18a6dc53dee62b42134a0a.tar.xz |
ALSA: aoa: convert bus code to use dev_groups
The dev_attrs field of struct bus_type is going away, use dev_groups instead.
This converts the soundbus code to use the correct field.
These modifications were made using Coccinelle.
Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/aoa/soundbus/core.c')
-rw-r--r-- | sound/aoa/soundbus/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/aoa/soundbus/core.c b/sound/aoa/soundbus/core.c index 7487eb76e034..3edf736319fe 100644 --- a/sound/aoa/soundbus/core.c +++ b/sound/aoa/soundbus/core.c @@ -150,6 +150,8 @@ static int soundbus_device_resume(struct device * dev) #endif /* CONFIG_PM */ +/* soundbus_dev_attrs is declared in sysfs.c */ +ATTRIBUTE_GROUPS(soundbus_dev); static struct bus_type soundbus_bus_type = { .name = "aoa-soundbus", .probe = soundbus_probe, @@ -160,7 +162,7 @@ static struct bus_type soundbus_bus_type = { .suspend = soundbus_device_suspend, .resume = soundbus_device_resume, #endif - .dev_attrs = soundbus_dev_attrs, + .dev_groups = soundbus_dev_groups, }; int soundbus_add_one(struct soundbus_dev *dev) |