Commit c5db56fe authored by Zhen Lei's avatar Zhen Lei Committed by Lee Jones
Browse files

mfd: asic3: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code



No functional change.

Signed-off-by: default avatarZhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent ba4672ad
Loading
Loading
Loading
Loading
+2 −10
Original line number Diff line number Diff line
@@ -723,16 +723,8 @@ static struct tmio_mmc_data asic3_mmc_data = {
};

static struct resource asic3_mmc_resources[] = {
	{
		.start = ASIC3_SD_CTRL_BASE,
		.end   = ASIC3_SD_CTRL_BASE + 0x3ff,
		.flags = IORESOURCE_MEM,
	},
	{
		.start = 0,
		.end   = 0,
		.flags = IORESOURCE_IRQ,
	},
	DEFINE_RES_MEM(ASIC3_SD_CTRL_BASE, 0x400),
	DEFINE_RES_IRQ(0)
};

static int asic3_mmc_enable(struct platform_device *pdev)