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

Commit e92eb9e6 authored by Sahitya Tummala's avatar Sahitya Tummala
Browse files

mmc: sdhci-msm-ice: Fix compilation issue



Fix compilation issue observed when CONFIG_PFK is not defined.

Change-Id: Ib85d22060a0c4c8cec9a20af4b61d503c736dee6
Signed-off-by: default avatarSahitya Tummala <stummala@codeaurora.org>
parent 9ace019e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -351,12 +351,16 @@ int sdhci_msm_ice_cfg(struct sdhci_host *host, struct mmc_request *mrq,
		return -EINVAL;
	req = mrq->req;
	if (req && req->bio) {
#ifdef CONFIG_PFK
		if (bio_dun(req->bio)) {
			dun = bio_dun(req->bio);
			cdu_sz = SDHCI_MSM_ICE_TR_DATA_UNIT_4_KB;
		} else {
			dun = req->__sector;
		}
#else
		dun = req->__sector;
#endif
		err = sdhci_msm_ice_get_cfg(msm_host, req, &bypass, &key_index);
		if (err)
			return err;
@@ -401,12 +405,16 @@ int sdhci_msm_ice_cmdq_cfg(struct sdhci_host *host,
		return -EINVAL;
	req = mrq->req;
	if (req && req->bio) {
#ifdef CONFIG_PFK
		if (bio_dun(req->bio)) {
			dun = bio_dun(req->bio);
			cdu_sz = SDHCI_MSM_ICE_TR_DATA_UNIT_4_KB;
		} else {
			dun = req->__sector;
		}
#else
		dun = req->__sector;
#endif
		err = sdhci_msm_ice_get_cfg(msm_host, req, &bypass, &key_index);
		if (err)
			return err;