mfd: asic3: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code
No functional change. Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
@@ -723,16 +723,8 @@ static struct tmio_mmc_data asic3_mmc_data = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct resource asic3_mmc_resources[] = {
|
static struct resource asic3_mmc_resources[] = {
|
||||||
{
|
DEFINE_RES_MEM(ASIC3_SD_CTRL_BASE, 0x400),
|
||||||
.start = ASIC3_SD_CTRL_BASE,
|
DEFINE_RES_IRQ(0)
|
||||||
.end = ASIC3_SD_CTRL_BASE + 0x3ff,
|
|
||||||
.flags = IORESOURCE_MEM,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
.start = 0,
|
|
||||||
.end = 0,
|
|
||||||
.flags = IORESOURCE_IRQ,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int asic3_mmc_enable(struct platform_device *pdev)
|
static int asic3_mmc_enable(struct platform_device *pdev)
|
||||||
|
|||||||
Reference in New Issue
Block a user