Thread (10 messages) 10 messages, 4 authors, 2011-01-26

Re: [PATCH v3] smc91x: add devicetree support

flat view

From: David Miller <hidden>
Date: 2011-01-26 03:44:59
Also in: linux-devicetree, lkml

From: Thomas Chou <redacted>
Date: Tue, 25 Jan 2011 20:11:48 +0800
quoted hunk ↗ jump to hunk
@@ -2394,6 +2395,13 @@ static int smc_drv_resume(struct device *dev)
 	return 0;
 }
 
+static const struct of_device_id smc91x_match[] = {
+	{ .compatible = "smsc,lan91c94", },
+	{ .compatible = "smsc,lan91c111", },
+	{},
+}
+MODULE_DEVICE_TABLE(of, smc91x_match);
+
 static struct dev_pm_ops smc_drv_pm_ops = {
 	.suspend	= smc_drv_suspend,
 	.resume		= smc_drv_resume,
You should not unconditionally put the 'of' device table into the
module image, otherwise the module will be marked as being able to
support OF based devices but the code to support that won't actually
be comiled into the module.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help