mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 04:17:47 +00:00
mmc: meson-gx: remove unused members irq, ocr_mask from struct meson_host
Member ocr_mask is never used and member irq we can replace with a local variable in meson_mmc_probe. So let's remove both members. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Acked-by: Kevin Hilman <khilman@baylibre.com> Tested-by: Kevin Hilman <khilman@baylibre.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
3d6c991b3d
commit
9a1da4df85
@ -127,8 +127,6 @@ struct meson_host {
|
|||||||
|
|
||||||
spinlock_t lock;
|
spinlock_t lock;
|
||||||
void __iomem *regs;
|
void __iomem *regs;
|
||||||
int irq;
|
|
||||||
u32 ocr_mask;
|
|
||||||
struct clk *core_clk;
|
struct clk *core_clk;
|
||||||
struct clk_mux mux;
|
struct clk_mux mux;
|
||||||
struct clk *mux_clk;
|
struct clk *mux_clk;
|
||||||
@ -712,7 +710,7 @@ static int meson_mmc_probe(struct platform_device *pdev)
|
|||||||
struct resource *res;
|
struct resource *res;
|
||||||
struct meson_host *host;
|
struct meson_host *host;
|
||||||
struct mmc_host *mmc;
|
struct mmc_host *mmc;
|
||||||
int ret;
|
int ret, irq;
|
||||||
|
|
||||||
mmc = mmc_alloc_host(sizeof(struct meson_host), &pdev->dev);
|
mmc = mmc_alloc_host(sizeof(struct meson_host), &pdev->dev);
|
||||||
if (!mmc)
|
if (!mmc)
|
||||||
@ -744,8 +742,8 @@ static int meson_mmc_probe(struct platform_device *pdev)
|
|||||||
goto free_host;
|
goto free_host;
|
||||||
}
|
}
|
||||||
|
|
||||||
host->irq = platform_get_irq(pdev, 0);
|
irq = platform_get_irq(pdev, 0);
|
||||||
if (host->irq == 0) {
|
if (!irq) {
|
||||||
dev_err(&pdev->dev, "failed to get interrupt resource.\n");
|
dev_err(&pdev->dev, "failed to get interrupt resource.\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
goto free_host;
|
goto free_host;
|
||||||
@ -773,9 +771,9 @@ static int meson_mmc_probe(struct platform_device *pdev)
|
|||||||
writel(IRQ_EN_MASK, host->regs + SD_EMMC_STATUS);
|
writel(IRQ_EN_MASK, host->regs + SD_EMMC_STATUS);
|
||||||
writel(IRQ_EN_MASK, host->regs + SD_EMMC_IRQ_EN);
|
writel(IRQ_EN_MASK, host->regs + SD_EMMC_IRQ_EN);
|
||||||
|
|
||||||
ret = devm_request_threaded_irq(&pdev->dev, host->irq,
|
ret = devm_request_threaded_irq(&pdev->dev, irq, meson_mmc_irq,
|
||||||
meson_mmc_irq, meson_mmc_irq_thread,
|
meson_mmc_irq_thread, IRQF_SHARED,
|
||||||
IRQF_SHARED, DRIVER_NAME, host);
|
DRIVER_NAME, host);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto free_host;
|
goto free_host;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user