driver core: make struct bus_type.uevent() take a const *
[linux-2.6-microblaze.git] / drivers / mcb / mcb-core.c
index b8ad4f1..978fdfc 100644 (file)
@@ -41,9 +41,9 @@ static int mcb_match(struct device *dev, struct device_driver *drv)
        return 0;
 }
 
-static int mcb_uevent(struct device *dev, struct kobj_uevent_env *env)
+static int mcb_uevent(const struct device *dev, struct kobj_uevent_env *env)
 {
-       struct mcb_device *mdev = to_mcb_device(dev);
+       const struct mcb_device *mdev = to_mcb_device(dev);
        int ret;
 
        ret = add_uevent_var(env, "MODALIAS=mcb:16z%03d", mdev->id);