diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-06-01 08:27:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-02 00:20:47 +0200 |
commit | d153ef5ce7db6d9801d418638d05df92cc63797a (patch) | |
tree | e5eef91321406737923a6d19be3a7993a098020e /drivers/net/fjes/fjes_main.c | |
parent | net: enetc: catch negative return code from enetc_pf_to_port() (diff) | |
download | linux-d153ef5ce7db6d9801d418638d05df92cc63797a.tar.xz linux-d153ef5ce7db6d9801d418638d05df92cc63797a.zip |
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>
Diffstat (limited to 'drivers/net/fjes/fjes_main.c')
-rw-r--r-- | drivers/net/fjes/fjes_main.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/net/fjes/fjes_main.c b/drivers/net/fjes/fjes_main.c index 466622664424..d098b1fcf006 100644 --- a/drivers/net/fjes/fjes_main.c +++ b/drivers/net/fjes/fjes_main.c @@ -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) |