Commit e4f38eb1 authored by Wolfram Sang's avatar Wolfram Sang Committed by Ulf Hansson

mmc: host: tmio: refactor calls to sdio irq

tmio_mmc_sdio_irq() is not used as a seperate irq handler anymore, so we
can make it similar to the other irq helper functions, namely:

* only give the host as argument function which is what it really needs
* prefix function name with __
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent de19b4c9
...@@ -709,9 +709,8 @@ static bool __tmio_mmc_sdcard_irq(struct tmio_mmc_host *host, ...@@ -709,9 +709,8 @@ static bool __tmio_mmc_sdcard_irq(struct tmio_mmc_host *host,
return false; return false;
} }
static void tmio_mmc_sdio_irq(int irq, void *devid) static void __tmio_mmc_sdio_irq(struct tmio_mmc_host *host)
{ {
struct tmio_mmc_host *host = devid;
struct mmc_host *mmc = host->mmc; struct mmc_host *mmc = host->mmc;
struct tmio_mmc_data *pdata = host->pdata; struct tmio_mmc_data *pdata = host->pdata;
unsigned int ireg, status; unsigned int ireg, status;
...@@ -752,7 +751,7 @@ irqreturn_t tmio_mmc_irq(int irq, void *devid) ...@@ -752,7 +751,7 @@ irqreturn_t tmio_mmc_irq(int irq, void *devid)
if (__tmio_mmc_sdcard_irq(host, ireg, status)) if (__tmio_mmc_sdcard_irq(host, ireg, status))
return IRQ_HANDLED; return IRQ_HANDLED;
tmio_mmc_sdio_irq(irq, devid); __tmio_mmc_sdio_irq(host);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment