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:
Yaniv Gardi 2015-05-26 15:46:26 +03:00 committed by David Keitel
parent 6517fb12c8
commit 25f4a1cb4a

View file

@ -1252,12 +1252,15 @@ out:
#define ANDROID_BOOT_DEV_MAX 30 #define ANDROID_BOOT_DEV_MAX 30
static char android_boot_dev[ANDROID_BOOT_DEV_MAX]; 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); strlcpy(android_boot_dev, str, ANDROID_BOOT_DEV_MAX);
return 1; return 1;
} }
__setup("androidboot.bootdevice=", get_android_boot_dev); __setup("androidboot.bootdevice=", get_android_boot_dev);
#endif
/** /**
* ufs_qcom_init - bind phy with controller * ufs_qcom_init - bind phy with controller