diff options
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/core.c | 4 | ||||
-rw-r--r-- | drivers/base/devtmpfs.c | 8 |
2 files changed, 6 insertions, 6 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 | ||
diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c index 2bb4bff3af7d..8493536ea55b 100644 --- a/drivers/base/devtmpfs.c +++ b/drivers/base/devtmpfs.c | |||
@@ -40,7 +40,7 @@ static struct req { | |||
40 | struct completion done; | 40 | struct completion done; |
41 | int err; | 41 | int err; |
42 | const char *name; | 42 | const char *name; |
43 | mode_t mode; /* 0 => delete */ | 43 | umode_t mode; /* 0 => delete */ |
44 | struct device *dev; | 44 | struct device *dev; |
45 | } *requests; | 45 | } *requests; |
46 | 46 | ||
@@ -142,7 +142,7 @@ int devtmpfs_delete_node(struct device *dev) | |||
142 | return req.err; | 142 | return req.err; |
143 | } | 143 | } |
144 | 144 | ||
145 | static int dev_mkdir(const char *name, mode_t mode) | 145 | static int dev_mkdir(const char *name, umode_t mode) |
146 | { | 146 | { |
147 | struct dentry *dentry; | 147 | struct dentry *dentry; |
148 | struct path path; | 148 | struct path path; |
@@ -189,7 +189,7 @@ static int create_path(const char *nodepath) | |||
189 | return err; | 189 | return err; |
190 | } | 190 | } |
191 | 191 | ||
192 | static int handle_create(const char *nodename, mode_t mode, struct device *dev) | 192 | static int handle_create(const char *nodename, umode_t mode, struct device *dev) |
193 | { | 193 | { |
194 | struct dentry *dentry; | 194 | struct dentry *dentry; |
195 | struct path path; | 195 | struct path path; |
@@ -378,7 +378,7 @@ int devtmpfs_mount(const char *mntdir) | |||
378 | 378 | ||
379 | static DECLARE_COMPLETION(setup_done); | 379 | static DECLARE_COMPLETION(setup_done); |
380 | 380 | ||
381 | static int handle(const char *name, mode_t mode, struct device *dev) | 381 | static int handle(const char *name, umode_t mode, struct device *dev) |
382 | { | 382 | { |
383 | if (mode) | 383 | if (mode) |
384 | return handle_create(name, mode, dev); | 384 | return handle_create(name, mode, dev); |