Skip to content

Commit

Permalink
net: mv643xx_eth: add missing semicolon
Browse files Browse the repository at this point in the history
76723bc "net: mv643xx_eth: add DT parsing support" added a
dummy mv643xx_eth_shared_of_probe() fallback function with a
typo.

This adds the missing semicolon so we can build without CONFIG_OF
again, and changes both dummy functions to the more conventional
"static inline" syntax, which can avoid potential problems with
the empty macro.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Arnd Bergmann authored and David S. Miller committed Jun 5, 2013
1 parent 6f45eba commit ff20877
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/net/ethernet/marvell/mv643xx_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2582,12 +2582,14 @@ static void mv643xx_eth_shared_of_remove(void)
}
}
#else
static int mv643xx_eth_shared_of_probe(struct platform_device *pdev)
static inline int mv643xx_eth_shared_of_probe(struct platform_device *pdev)
{
return 0
return 0;
}

#define mv643xx_eth_shared_of_remove()
static inline void mv643xx_eth_shared_of_remove(void)
{
}
#endif

static int mv643xx_eth_shared_probe(struct platform_device *pdev)
Expand Down

0 comments on commit ff20877

Please sign in to comment.