diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2009-10-14 14:54:52 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-14 14:54:52 -0700 |
commit | e72701acbe0b35e52d3f04d442837c06b4e64f1c (patch) | |
tree | 2a8edc6952e79c3d2ee3bdf7690ed1a6f2e7bcc6 /drivers/net/ibm_newemac | |
parent | 0fe7463a35aadfaf22d1ca58325ab3851b8d757c (diff) | |
download | kernel_samsung_crespo-e72701acbe0b35e52d3f04d442837c06b4e64f1c.zip kernel_samsung_crespo-e72701acbe0b35e52d3f04d442837c06b4e64f1c.tar.gz kernel_samsung_crespo-e72701acbe0b35e52d3f04d442837c06b4e64f1c.tar.bz2 |
net: Fix OF platform drivers coldplug/hotplug when compiled as modules
Some OF platform drivers are missing module device tables, so they won't
load automatically on boot. This patch fixes the issue by adding proper
MODULE_DEVICE_TABLE() macros to the drivers.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ibm_newemac')
-rw-r--r-- | drivers/net/ibm_newemac/core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ibm_newemac/core.c b/drivers/net/ibm_newemac/core.c index c6591cb..3fae875 100644 --- a/drivers/net/ibm_newemac/core.c +++ b/drivers/net/ibm_newemac/core.c @@ -24,6 +24,7 @@ * */ +#include <linux/module.h> #include <linux/sched.h> #include <linux/string.h> #include <linux/errno.h> @@ -2988,6 +2989,7 @@ static struct of_device_id emac_match[] = }, {}, }; +MODULE_DEVICE_TABLE(of, emac_match); static struct of_platform_driver emac_driver = { .name = "emac", |