diff options
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 4dac58aa4a0a..4a67cc0c8b37 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -248,7 +248,7 @@ static int dev_uevent(struct kset *kset, struct kobject *kobj, | |||
248 | if (MAJOR(dev->devt)) { | 248 | if (MAJOR(dev->devt)) { |
249 | const char *tmp; | 249 | const char *tmp; |
250 | const char *name; | 250 | const char *name; |
251 | mode_t mode = 0; | 251 | umode_t mode = 0; |
252 | 252 | ||
253 | add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); | 253 | add_uevent_var(env, "MAJOR=%u", MAJOR(dev->devt)); |
254 | add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); | 254 | add_uevent_var(env, "MINOR=%u", MINOR(dev->devt)); |
@@ -1235,7 +1235,7 @@ static struct device *next_device(struct klist_iter *i) | |||
1235 | * freed by the caller. | 1235 | * freed by the caller. |
1236 | */ | 1236 | */ |
1237 | const char *device_get_devnode(struct device *dev, | 1237 | const char *device_get_devnode(struct device *dev, |
1238 | mode_t *mode, const char **tmp) | 1238 | umode_t *mode, const char **tmp) |
1239 | { | 1239 | { |
1240 | char *s; | 1240 | char *s; |
1241 | 1241 | ||