Skip to contentSkip to conversation

Input: fix 'uniq' reporting in hotplug handler

PATCH New Dmitry Torokhov 1 participant 1 message Nov 8, 2005 Input drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input: fix 'uniq' reporting in hotplug handler

Input: fix 'uniq' reporting in hotplug handler

---

 drivers/input/input.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/input/input.c +1 -1
Index: work/drivers/input/input.c
===================================================================
@@ -669,7 +669,7 @@ static int input_dev_hotplug(struct clas
 		INPUT_ADD_HOTPLUG_VAR("NAME=\"%s\"", dev->name);
 	if (dev->phys)
 		INPUT_ADD_HOTPLUG_VAR("PHYS=\"%s\"", dev->phys);
-	if (dev->phys)
+	if (dev->uniq)
 		INPUT_ADD_HOTPLUG_VAR("UNIQ=\"%s\"", dev->uniq);
 
 	INPUT_ADD_HOTPLUG_BM_VAR("EV=", dev->evbit, EV_MAX);