Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: atmel-mci: Remove redundant runtime PM calls

Commit 9250aea76bfc ("mmc: core: Enable runtime PM management of host
devices"), made some calls to the runtime PM API from the driver
redundant. Especially those which deals with runtime PM reference
counting, so let's remove them.

Cc: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Tested-by: Ludovic Desroches <ludovic.desroches@atmel.com>

-9
-9
drivers/mmc/host/atmel-mci.c
··· 1410 1410 WARN_ON(slot->mrq); 1411 1411 dev_dbg(&host->pdev->dev, "MRQ: cmd %u\n", mrq->cmd->opcode); 1412 1412 1413 - pm_runtime_get_sync(&host->pdev->dev); 1414 - 1415 1413 /* 1416 1414 * We may "know" the card is gone even though there's still an 1417 1415 * electrical connection. If so, we really need to communicate ··· 1439 1441 struct atmel_mci_slot *slot = mmc_priv(mmc); 1440 1442 struct atmel_mci *host = slot->host; 1441 1443 unsigned int i; 1442 - 1443 - pm_runtime_get_sync(&host->pdev->dev); 1444 1444 1445 1445 slot->sdc_reg &= ~ATMCI_SDCBUS_MASK; 1446 1446 switch (ios->bus_width) { ··· 1572 1576 break; 1573 1577 } 1574 1578 1575 - pm_runtime_mark_last_busy(&host->pdev->dev); 1576 - pm_runtime_put_autosuspend(&host->pdev->dev); 1577 1579 } 1578 1580 1579 1581 static int atmci_get_ro(struct mmc_host *mmc) ··· 1663 1669 spin_unlock(&host->lock); 1664 1670 mmc_request_done(prev_mmc, mrq); 1665 1671 spin_lock(&host->lock); 1666 - 1667 - pm_runtime_mark_last_busy(&host->pdev->dev); 1668 - pm_runtime_put_autosuspend(&host->pdev->dev); 1669 1672 } 1670 1673 1671 1674 static void atmci_command_complete(struct atmel_mci *host,