mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
init: export name_to_dev_t and mark name argument as const
DM will switch its device lookup code to using name_to_dev_t() so it must be exported. Also, the @name argument should be marked const. Signed-off-by: Dan Ehrenberg <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
This commit is contained in:
parent
17e149b8f7
commit
e6e20a7a5f
2 changed files with 3 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ done:
|
|||
* bangs.
|
||||
*/
|
||||
|
||||
dev_t name_to_dev_t(char *name)
|
||||
dev_t name_to_dev_t(const char *name)
|
||||
{
|
||||
char s[32];
|
||||
char *p;
|
||||
|
|
@ -286,6 +286,7 @@ fail:
|
|||
done:
|
||||
return res;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(name_to_dev_t);
|
||||
|
||||
static int __init root_dev_setup(char *line)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue