Skip to content

Commit 6f56023

Browse files
author
Ulf Hansson
committed
Merge branch 'fixes' into next
2 parents 2a39480 + c0d638a commit 6f56023

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

drivers/mmc/core/block.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ static int __mmc_blk_ioctl_cmd(struct mmc_card *card, struct mmc_blk_data *md,
580580

581581
memcpy(&(idata->ic.response), cmd.resp, sizeof(cmd.resp));
582582

583-
if (idata->rpmb || (cmd.flags & MMC_RSP_R1B)) {
583+
if (idata->rpmb || (cmd.flags & MMC_RSP_R1B) == MMC_RSP_R1B) {
584584
/*
585585
* Ensure RPMB/R1B command has completed by polling CMD13
586586
* "Send Status".

drivers/mmc/host/mtk-sd.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2683,7 +2683,6 @@ static int msdc_drv_remove(struct platform_device *pdev)
26832683
return 0;
26842684
}
26852685

2686-
#ifdef CONFIG_PM
26872686
static void msdc_save_reg(struct msdc_host *host)
26882687
{
26892688
u32 tune_reg = host->dev_comp->pad_tune_reg;
@@ -2742,7 +2741,7 @@ static void msdc_restore_reg(struct msdc_host *host)
27422741
__msdc_enable_sdio_irq(host, 1);
27432742
}
27442743

2745-
static int msdc_runtime_suspend(struct device *dev)
2744+
static int __maybe_unused msdc_runtime_suspend(struct device *dev)
27462745
{
27472746
struct mmc_host *mmc = dev_get_drvdata(dev);
27482747
struct msdc_host *host = mmc_priv(mmc);
@@ -2752,7 +2751,7 @@ static int msdc_runtime_suspend(struct device *dev)
27522751
return 0;
27532752
}
27542753

2755-
static int msdc_runtime_resume(struct device *dev)
2754+
static int __maybe_unused msdc_runtime_resume(struct device *dev)
27562755
{
27572756
struct mmc_host *mmc = dev_get_drvdata(dev);
27582757
struct msdc_host *host = mmc_priv(mmc);
@@ -2762,7 +2761,7 @@ static int msdc_runtime_resume(struct device *dev)
27622761
return 0;
27632762
}
27642763

2765-
static int msdc_suspend(struct device *dev)
2764+
static int __maybe_unused msdc_suspend(struct device *dev)
27662765
{
27672766
struct mmc_host *mmc = dev_get_drvdata(dev);
27682767
int ret;
@@ -2776,11 +2775,10 @@ static int msdc_suspend(struct device *dev)
27762775
return pm_runtime_force_suspend(dev);
27772776
}
27782777

2779-
static int msdc_resume(struct device *dev)
2778+
static int __maybe_unused msdc_resume(struct device *dev)
27802779
{
27812780
return pm_runtime_force_resume(dev);
27822781
}
2783-
#endif
27842782

27852783
static const struct dev_pm_ops msdc_dev_pm_ops = {
27862784
SET_SYSTEM_SLEEP_PM_OPS(msdc_suspend, msdc_resume)

0 commit comments

Comments
 (0)