scsi: ufs-qcom: ifdef msm bus scaling code appropriately
ifdef msm-bus include and api's with CONFIG_MSM_BUS_SCALING. This makes compiling UFS driver clean when MSM_BUS_SCALING is not enabled. Change-Id: I50a3f43c7c1deb1033d4ece1493e0f205d8ed553 Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
This commit is contained in:
parent
1191a83ef3
commit
68d437a53f
1 changed files with 7 additions and 0 deletions
|
@ -16,7 +16,11 @@
|
||||||
#include <linux/of.h>
|
#include <linux/of.h>
|
||||||
#include <linux/iopoll.h>
|
#include <linux/iopoll.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#ifdef CONFIG_MSM_BUS_SCALING
|
||||||
#include <linux/msm-bus.h>
|
#include <linux/msm-bus.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <soc/qcom/scm.h>
|
#include <soc/qcom/scm.h>
|
||||||
#include <linux/phy/phy.h>
|
#include <linux/phy/phy.h>
|
||||||
#include <linux/phy/phy-qcom-ufs.h>
|
#include <linux/phy/phy-qcom-ufs.h>
|
||||||
|
@ -1028,6 +1032,9 @@ static int ufs_qcom_bus_register(struct ufs_qcom_host *host)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
static inline void msm_bus_scale_unregister_client(uint32_t cl)
|
||||||
|
{
|
||||||
|
}
|
||||||
#endif /* CONFIG_MSM_BUS_SCALING */
|
#endif /* CONFIG_MSM_BUS_SCALING */
|
||||||
|
|
||||||
static void ufs_qcom_dev_ref_clk_ctrl(struct ufs_qcom_host *host, bool enable)
|
static void ufs_qcom_dev_ref_clk_ctrl(struct ufs_qcom_host *host, bool enable)
|
||||||
|
|
Loading…
Add table
Reference in a new issue