Commit d153ef5c authored by Zhen Lei's avatar Zhen Lei Committed by David S. Miller

fjes: 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 avatarDavid S. Miller <davem@davemloft.net>
parent 37d4b3fd
...@@ -90,16 +90,8 @@ static struct platform_driver fjes_driver = { ...@@ -90,16 +90,8 @@ static struct platform_driver fjes_driver = {
}; };
static struct resource fjes_resource[] = { static struct resource fjes_resource[] = {
{ DEFINE_RES_MEM(0, 1),
.flags = IORESOURCE_MEM, DEFINE_RES_IRQ(0)
.start = 0,
.end = 0,
},
{
.flags = IORESOURCE_IRQ,
.start = 0,
.end = 0,
},
}; };
static bool is_extended_socket_device(struct acpi_device *device) static bool is_extended_socket_device(struct acpi_device *device)
......
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