Displaying 2 results from an estimated 2 matches for "class_virtio_ports_uevent".
2013 Jan 17
1
[RFC] virtio_console: Add DRIVER and INTERFACE to uevent.
...ons(-)
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 031be0b..96c5ed9 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -2190,6 +2190,27 @@ static struct virtio_driver virtio_rproc_serial = {
.remove = virtcons_remove,
};
+int class_virtio_ports_uevent(struct device *_dev, struct kobj_uevent_env *env)
+{
+ struct port *port = dev_get_drvdata(_dev);
+ struct device *dev;
+ int err;
+
+ if (!port || !port->portdev || !port->portdev->vdev)
+ return 0;
+
+ dev = &port->portdev->vdev->dev;
+ err = add_uevent_var(env, "DRIVE...
2013 Jan 17
1
[RFC] virtio_console: Add DRIVER and INTERFACE to uevent.
...ons(-)
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 031be0b..96c5ed9 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -2190,6 +2190,27 @@ static struct virtio_driver virtio_rproc_serial = {
.remove = virtcons_remove,
};
+int class_virtio_ports_uevent(struct device *_dev, struct kobj_uevent_env *env)
+{
+ struct port *port = dev_get_drvdata(_dev);
+ struct device *dev;
+ int err;
+
+ if (!port || !port->portdev || !port->portdev->vdev)
+ return 0;
+
+ dev = &port->portdev->vdev->dev;
+ err = add_uevent_var(env, "DRIVE...