diff options
author | John Crispin <john@openwrt.org> | 2009-11-01 18:52:35 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2009-11-01 18:52:35 +0000 |
commit | 976d1a10243874c67f3cd7f5987c3a9a4136d9e7 (patch) | |
tree | 664a2ea026634c11dff4a2451dd2e0b309fd58df /package/ifxmips-dsl-api/patches/100-dsl_compat.patch | |
parent | eff68fb14bf3b423ea5ae58306b95581d3a76a11 (diff) | |
download | upstream-976d1a10243874c67f3cd7f5987c3a9a4136d9e7.tar.gz upstream-976d1a10243874c67f3cd7f5987c3a9a4136d9e7.tar.bz2 upstream-976d1a10243874c67f3cd7f5987c3a9a4136d9e7.zip |
adds dsl support, thank you infineon/lantiq
SVN-Revision: 18259
Diffstat (limited to 'package/ifxmips-dsl-api/patches/100-dsl_compat.patch')
-rw-r--r-- | package/ifxmips-dsl-api/patches/100-dsl_compat.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/package/ifxmips-dsl-api/patches/100-dsl_compat.patch b/package/ifxmips-dsl-api/patches/100-dsl_compat.patch new file mode 100644 index 0000000000..a3b9930c20 --- /dev/null +++ b/package/ifxmips-dsl-api/patches/100-dsl_compat.patch @@ -0,0 +1,43 @@ +Index: drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_device_danube.h +=================================================================== +--- drv_dsl_cpe_api-3.24.4.4.orig/src/include/drv_dsl_cpe_device_danube.h 2009-05-12 20:02:16.000000000 +0200 ++++ drv_dsl_cpe_api-3.24.4.4/src/include/drv_dsl_cpe_device_danube.h 2009-11-01 00:57:23.000000000 +0100 +@@ -24,7 +24,7 @@ + #include "drv_dsl_cpe_simulator_danube.h" + #else + /* Include for the low level driver interface header file */ +-#include "asm/ifx/ifx_mei_bsp.h" ++#include "mei/ifxmips_mei_interface.h" + #endif /* defined(DSL_CPE_SIMULATOR_DRIVER) && defined(WIN32)*/ + + #define DSL_MAX_LINE_NUMBER 1 +Index: drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_os_linux.c +=================================================================== +--- drv_dsl_cpe_api-3.24.4.4.orig/src/common/drv_dsl_cpe_os_linux.c 2009-11-01 01:00:08.000000000 +0100 ++++ drv_dsl_cpe_api-3.24.4.4/src/common/drv_dsl_cpe_os_linux.c 2009-11-01 01:03:51.000000000 +0100 +@@ -11,6 +11,7 @@ + #ifdef __LINUX__ + + #define DSL_INTERN ++#include <linux/device.h> + + #include "drv_dsl_cpe_api.h" + #include "drv_dsl_cpe_api_ioctl.h" +@@ -1058,6 +1059,7 @@ + /* Entry point of driver */ + int __init DSL_ModuleInit(void) + { ++ struct class *dsl_class; + DSL_int_t i; + + printk(DSL_DRV_CRLF DSL_DRV_CRLF "Infineon CPE API Driver version: %s" DSL_DRV_CRLF, +@@ -1104,7 +1106,8 @@ + } + + DSL_DRV_DevNodeInit(); +- ++ dsl_class = class_create(THIS_MODULE, "dsl_cpe_api"); ++ device_create(dsl_class, NULL, MKDEV(DRV_DSL_CPE_API_DEV_MAJOR, 0), NULL, "dsl_cpe_api"); + return 0; + } + |