scsi: ufs-qcom: fix compilation warning if compiled as a module
This change fixes a compilation warning that happens if SCSI_UFS_QCOM is compiled as a module. Change-Id: I5c0272006f805f237e8acb922ddb4b3c15ff6b21 Signed-off-by: Yaniv Gardi <ygardi@codeaurora.org>
This commit is contained in:
parent
6517fb12c8
commit
25f4a1cb4a
1 changed files with 4 additions and 1 deletions
|
@ -1252,12 +1252,15 @@ out:
|
|||
|
||||
#define ANDROID_BOOT_DEV_MAX 30
|
||||
static char android_boot_dev[ANDROID_BOOT_DEV_MAX];
|
||||
static int get_android_boot_dev(char *str)
|
||||
|
||||
#ifndef MODULE
|
||||
static int __init get_android_boot_dev(char *str)
|
||||
{
|
||||
strlcpy(android_boot_dev, str, ANDROID_BOOT_DEV_MAX);
|
||||
return 1;
|
||||
}
|
||||
__setup("androidboot.bootdevice=", get_android_boot_dev);
|
||||
#endif
|
||||
|
||||
/**
|
||||
* ufs_qcom_init - bind phy with controller
|
||||
|
|
Loading…
Add table
Reference in a new issue