]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
net: mv643xx_eth: add missing semicolon
authorArnd Bergmann <arnd@arndb.de>
Mon, 3 Jun 2013 03:11:24 +0000 (03:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Jun 2013 00:18:58 +0000 (17:18 -0700)
76723bca28 "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>
drivers/net/ethernet/marvell/mv643xx_eth.c

index 23ea7b6e23f1665bda8c726188c2f098d747939a..c7f9fb33ce9525f939d637425c075bece69a6da3 100644 (file)
@@ -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)