Skip to content

Commit

Permalink
fjes: Use DEFINE_RES_MEM() and DEFINE_RES_IRQ() to simplify code
Browse files Browse the repository at this point in the history
No functional change.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhen Lei authored and David S. Miller committed Jun 1, 2021
1 parent 37d4b3f commit d153ef5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions drivers/net/fjes/fjes_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d153ef5

Please sign in to comment.