|
@@ -365,11 +365,23 @@ static int spmi_drv_remove(struct device *dev)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
+static int spmi_drv_uevent(struct device *dev, struct kobj_uevent_env *env)
|
|
|
+{
|
|
|
+ int ret;
|
|
|
+
|
|
|
+ ret = of_device_uevent_modalias(dev, env);
|
|
|
+ if (ret != -ENODEV)
|
|
|
+ return ret;
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+
|
|
|
static struct bus_type spmi_bus_type = {
|
|
|
.name = "spmi",
|
|
|
.match = spmi_device_match,
|
|
|
.probe = spmi_drv_probe,
|
|
|
.remove = spmi_drv_remove,
|
|
|
+ .uevent = spmi_drv_uevent,
|
|
|
};
|
|
|
|
|
|
/**
|