]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.drivers/ehea-modinfo.patch
Add a patch to fix Intel E100 wake-on-lan problems.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.drivers / ehea-modinfo.patch
1 Subject: add alias entry for portN properties
2 From: olh@suse.de
3 References: 435215 - LTC48564
4
5 Use separate table for alias entries in the ehea module,
6 otherwise the probe() function will operate on the separate ports
7 instead of the lhea-"root" entry of the device-tree
8
9 ---
10 drivers/net/ehea/ehea_main.c | 14 +++++++++++++-
11 1 file changed, 13 insertions(+), 1 deletion(-)
12
13 --- a/drivers/net/ehea/ehea_main.c
14 +++ b/drivers/net/ehea/ehea_main.c
15 @@ -111,6 +111,19 @@ static int __devinit ehea_probe_adapter(
16
17 static int __devexit ehea_remove(struct of_device *dev);
18
19 +static struct of_device_id ehea_module_device_table[] = {
20 + {
21 + .name = "lhea",
22 + .compatible = "IBM,lhea",
23 + },
24 + {
25 + .type = "network",
26 + .compatible = "IBM,lhea-ethernet",
27 + },
28 + {},
29 +};
30 +MODULE_DEVICE_TABLE(of, ehea_module_device_table);
31 +
32 static struct of_device_id ehea_device_table[] = {
33 {
34 .name = "lhea",
35 @@ -118,7 +131,6 @@ static struct of_device_id ehea_device_t
36 },
37 {},
38 };
39 -MODULE_DEVICE_TABLE(of, ehea_device_table);
40
41 static struct of_platform_driver ehea_driver = {
42 .name = "ehea",