fjes: 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: David S. Miller <davem@davemloft.net>
This commit is contained in:
Zhen Lei 2021-06-01 14:27:36 +08:00 committed by David S. Miller
parent 37d4b3fdc5
commit d153ef5ce7
1 changed files with 2 additions and 10 deletions

View File

@ -90,16 +90,8 @@ static struct platform_driver fjes_driver = {
};
static struct resource fjes_resource[] = {
{
.flags = IORESOURCE_MEM,
.start = 0,
.end = 0,
},
{
.flags = IORESOURCE_IRQ,
.start = 0,
.end = 0,
},
DEFINE_RES_MEM(0, 1),
DEFINE_RES_IRQ(0)
};
static bool is_extended_socket_device(struct acpi_device *device)