summaryrefslogtreecommitdiff
path: root/udev_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_device.c')
-rw-r--r--udev_device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/udev_device.c b/udev_device.c
index a7a8b13c96..ab4965c3a1 100644
--- a/udev_device.c
+++ b/udev_device.c
@@ -114,7 +114,8 @@ int udev_device_event(struct udev_rules *rules, struct udevice *udev)
int retval = 0;
/* add device node */
- if (major(udev->devt) != 0 && strcmp(udev->action, "add") == 0) {
+ if (major(udev->devt) != 0 &&
+ (strcmp(udev->action, "add") == 0 || strcmp(udev->action, "online") == 0)) {
struct udevice *udev_old;
dbg("device node add '%s'", udev->dev->devpath);