diff options
| -rw-r--r-- | drivers/char/virtio_console.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index f404ccfc9c20..67b474b4167c 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c | |||
| @@ -947,11 +947,18 @@ static void handle_control_message(struct ports_device *portdev, | |||
| 947 | */ | 947 | */ |
| 948 | err = sysfs_create_group(&port->dev->kobj, | 948 | err = sysfs_create_group(&port->dev->kobj, |
| 949 | &port_attribute_group); | 949 | &port_attribute_group); |
| 950 | if (err) | 950 | if (err) { |
| 951 | dev_err(port->dev, | 951 | dev_err(port->dev, |
| 952 | "Error %d creating sysfs device attributes\n", | 952 | "Error %d creating sysfs device attributes\n", |
| 953 | err); | 953 | err); |
| 954 | 954 | } else { | |
| 955 | /* | ||
| 956 | * Generate a udev event so that appropriate | ||
| 957 | * symlinks can be created based on udev | ||
| 958 | * rules. | ||
| 959 | */ | ||
| 960 | kobject_uevent(&port->dev->kobj, KOBJ_CHANGE); | ||
| 961 | } | ||
| 955 | break; | 962 | break; |
| 956 | case VIRTIO_CONSOLE_PORT_REMOVE: | 963 | case VIRTIO_CONSOLE_PORT_REMOVE: |
| 957 | /* | 964 | /* |
