mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
tty: serdev: 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: Rob Herring <robh@kernel.org> Cc: Jiri Slaby <jslaby@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
33acc6db64
commit
4fe99816a1
1 changed files with 6 additions and 4 deletions
|
@ -250,11 +250,13 @@ static ssize_t modalias_show(struct device *dev,
|
||||||
{
|
{
|
||||||
return of_device_modalias(dev, buf, PAGE_SIZE);
|
return of_device_modalias(dev, buf, PAGE_SIZE);
|
||||||
}
|
}
|
||||||
|
DEVICE_ATTR_RO(modalias);
|
||||||
|
|
||||||
static struct device_attribute serdev_device_attrs[] = {
|
static struct attribute *serdev_device_attrs[] = {
|
||||||
__ATTR_RO(modalias),
|
&dev_attr_modalias.attr,
|
||||||
__ATTR_NULL
|
NULL,
|
||||||
};
|
};
|
||||||
|
ATTRIBUTE_GROUPS(serdev_device);
|
||||||
|
|
||||||
static struct bus_type serdev_bus_type = {
|
static struct bus_type serdev_bus_type = {
|
||||||
.name = "serial",
|
.name = "serial",
|
||||||
|
@ -262,7 +264,7 @@ static struct bus_type serdev_bus_type = {
|
||||||
.probe = serdev_drv_probe,
|
.probe = serdev_drv_probe,
|
||||||
.remove = serdev_drv_remove,
|
.remove = serdev_drv_remove,
|
||||||
.uevent = serdev_uevent,
|
.uevent = serdev_uevent,
|
||||||
.dev_attrs = serdev_device_attrs,
|
.dev_groups = serdev_device_groups,
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue