[lantiq]
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches / 104-board_xway.patch
index fcd9c0e326c6a7153fafa67f4dfedd444a949d76..ad434aa46bc0b7e98a2c303dd1ec055be0d7a485 100644 (file)
 +}
 --- /dev/null
 +++ b/arch/mips/lantiq/xway/devices.c
-@@ -0,0 +1,305 @@
+@@ -0,0 +1,313 @@
 +/*
 + *  This program is free software; you can redistribute it and/or modify it
 + *  under the terms of the GNU General Public License version 2 as published
 +      .flags  = IORESOURCE_MEM,
 +};
 +
++static struct platform_device lq_ebu =
++{
++      .name           = "lq_ebu",
++      .resource       = &lq_ebu_resource,
++      .num_resources  = 1,
++};
++
 +void __init
 +lq_register_gpio_ebu(unsigned int value)
 +{
-+      platform_device_register_simple("lq_ebu", 0, &lq_ebu_resource, 1);
++      lq_ebu.dev.platform_data = (void*) value;
++      platform_device_register(&lq_ebu);
 +}
 +
 +/* ethernet */