macintosh: use dev_groups and not dev_attrs for bus_type

The dev_attrs field has long been "depreciated" and is finally being
removed, so move the driver to use the "correct" dev_groups field
instead for struct bus_type.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: <linuxppc-dev@lists.ozlabs.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman
2017-06-06 14:17:12 +02:00
parent 9f4ac349bd
commit 60bb70aa76
2 changed files with 23 additions and 10 deletions

View File

@@ -133,7 +133,7 @@ static int macio_device_resume(struct device * dev)
return 0;
}
extern struct device_attribute macio_dev_attrs[];
extern const struct attribute_group *macio_dev_groups[];
struct bus_type macio_bus_type = {
.name = "macio",
@@ -144,7 +144,7 @@ struct bus_type macio_bus_type = {
.shutdown = macio_device_shutdown,
.suspend = macio_device_suspend,
.resume = macio_device_resume,
.dev_attrs = macio_dev_attrs,
.dev_groups = macio_dev_groups,
};
static int __init macio_bus_driver_init(void)