2010-03-26 16:28:31 +02:00
|
|
|
--- a/src/include/drv_dsl_cpe_device_danube.h
|
|
|
|
+++ b/src/include/drv_dsl_cpe_device_danube.h
|
2009-11-01 20:52:35 +02:00
|
|
|
@@ -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
|
2010-03-26 16:28:31 +02:00
|
|
|
--- a/src/common/drv_dsl_cpe_os_linux.c
|
|
|
|
+++ b/src/common/drv_dsl_cpe_os_linux.c
|
2009-11-01 20:52:35 +02:00
|
|
|
@@ -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"
|
2010-03-26 16:28:31 +02:00
|
|
|
@@ -1058,6 +1059,7 @@ static void DSL_DRV_DebugInit(void)
|
2009-11-01 20:52:35 +02:00
|
|
|
/* 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,
|
2010-03-26 16:28:31 +02:00
|
|
|
@@ -1104,7 +1106,8 @@ int __init DSL_ModuleInit(void)
|
2009-11-01 20:52:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|