]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.25/patches.drivers/ehea-modinfo.patch
Reenabled linux-xen and xen-image build
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.drivers / ehea-modinfo.patch
CommitLineData
00e5a55c
BS
1Subject: add alias entry for portN properties
2From: olh@suse.de
3References: 435215 - LTC48564
4
5Use separate table for alias entries in the ehea module,
6otherwise the probe() function will operate on the separate ports
7instead 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",