Thread (16 messages) 16 messages, 4 authors, 2014-09-30

[PATCH v5 02/10] net: pxa168_eth: add device tree support

From: Antoine Tenart <hidden>
Date: 2014-09-30 14:29:38
Also in: linux-devicetree, lkml, netdev

David,

On Mon, Sep 29, 2014 at 04:04:36PM -0400, David Miller wrote:
From: Antoine Tenart <redacted>
Date: Fri, 26 Sep 2014 16:33:48 +0200
quoted
@@ -1603,6 +1620,12 @@ static int pxa168_eth_suspend(struct platform_device *pdev, pm_message_t state)
 #define pxa168_eth_suspend NULL
 #endif
 
+static const struct of_device_id pxa168_eth_of_match[] = {
+	{ .compatible = "marvell,pxa168-eth" },
+	{ },
+};
+MODULE_DEVICE_TABLE(of, pxa168_eth_of_match)
+
 static struct platform_driver pxa168_eth_driver = {
You didn't even compile test this change with module support enabled.

drivers/net/ethernet/marvell/pxa168_eth.c:1670:1: error: expected ?,? or ?;? before ?static?

MODULE_DEVICE_TABLE() must be completed with a trailing ';'
Oops, thanks for spotting this!

Antoine

-- 
Antoine T?nart, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help