Merge tag 'driver-core-6.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-block.git] / drivers / bus / sunxi-rsb.c
index 226e87b85116ea700efa5db36d89567cf89a97d0..696c0aefb0ca98024842216759f761ae938d057f 100644 (file)
@@ -172,12 +172,17 @@ static void sunxi_rsb_device_remove(struct device *dev)
        drv->remove(to_sunxi_rsb_device(dev));
 }
 
+static int sunxi_rsb_device_modalias(const struct device *dev, struct kobj_uevent_env *env)
+{
+       return of_device_uevent_modalias(dev, env);
+}
+
 static struct bus_type sunxi_rsb_bus = {
        .name           = RSB_CTRL_NAME,
        .match          = sunxi_rsb_device_match,
        .probe          = sunxi_rsb_device_probe,
        .remove         = sunxi_rsb_device_remove,
-       .uevent         = of_device_uevent_modalias,
+       .uevent         = sunxi_rsb_device_modalias,
 };
 
 static void sunxi_rsb_dev_release(struct device *dev)