Skip to contentSkip to conversation

slimbus: core: generate uevent for non-dt only

PATCH New Bjorn Andersson 1 participant 1 message Jun 18, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slimbus: core: generate uevent for non-dt only

From: Srinivas Kandagatla <[email protected]>

Rely on MODULE_ALIAS() for automatic kernel module loading, rather than basing it on the OF compatible. This ensures that drivers without of_device_id table, such as wcd9335, will be automatically loaded.

[bjorn: Added commit message]
---
 drivers/slimbus/core.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/slimbus/core.c +0 -5
index b2f07d2043eb..526e3215d8fe 100644
@@ -98,11 +98,6 @@ static int slim_device_remove(struct device *dev)
 static int slim_device_uevent(struct device *dev, struct kobj_uevent_env *env)
 {
 	struct slim_device *sbdev = to_slim_device(dev);
-	int ret;
-
-	ret = of_device_uevent_modalias(dev, env);
-	if (ret != -ENODEV)
-		return ret;
 
 	return add_uevent_var(env, "MODALIAS=slim:%s", dev_name(&sbdev->dev));
 }
Signature · 1 line
2.18.0