switch device_get_devnode() and ->devnode() to umode_t *
[deliverable/linux.git] / drivers / base / core.c
index 919daa7cd5b1db3443c65863cc07c20c830f680b..1dfa1d616fa59be8dc5f1a2db5dd5546d9c31ee5 100644 (file)
@@ -198,7 +198,7 @@ static int dev_uevent(struct kset *kset, struct kobject *kobj,
        if (MAJOR(dev->devt)) {
                const char *tmp;
                const char *name;
-               mode_t mode = 0;
+               umode_t mode = 0;
 
                add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt));
                add_uevent_var(env, "MINOR=%u", MINOR(dev->devt));
@@ -1182,7 +1182,7 @@ static struct device *next_device(struct klist_iter *i)
  * freed by the caller.
  */
 const char *device_get_devnode(struct device *dev,
-                              mode_t *mode, const char **tmp)
+                              umode_t *mode, const char **tmp)
 {
        char *s;
 
This page took 0.024139 seconds and 5 git commands to generate.