Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 18252d0e authored by Yaniv Gardi's avatar Yaniv Gardi
Browse files

scsi: ufs: resolve linkage errors when SCSI_UFSHCD is built as a module



In case CONFIG_SCSI_UFSHCD is defined as a module, we should export
ufshcd_hold() and ufshcd_release() in order to avoid the following
errors:
ERROR: "ufshcd_hold" [drivers/scsi/ufs/ufs-qcom.ko] undefined!
ERROR: "ufshcd_release" [drivers/scsi/ufs/ufs-qcom.ko] undefined!

Change-Id: I728172605deadd118a3a05af9bc7beeacd61cf55
Signed-off-by: default avatarYaniv Gardi <ygardi@codeaurora.org>
parent 40b49a34
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1260,6 +1260,7 @@ start:
out:
	return rc;
}
EXPORT_SYMBOL(ufshcd_hold);

static void ufshcd_gate_work(struct work_struct *work)
{
@@ -1362,6 +1363,7 @@ void ufshcd_release(struct ufs_hba *hba, bool no_sched)
	__ufshcd_release(hba, no_sched);
	spin_unlock_irqrestore(hba->host->host_lock, flags);
}
EXPORT_SYMBOL(ufshcd_release);

static ssize_t ufshcd_clkgate_delay_show(struct device *dev,
		struct device_attribute *attr, char *buf)