3 @@ -63,7 +63,7 @@ POST_UNINSTALL = :
5 # the headerfile of linux kernels 2.6.x contain to much arithmetic
6 # with void pointers (which is allowed for gcc!)
7 -@KERNEL_2_6_FALSE@am__append_6 = -Wpointer-arith
8 +@KERNEL_2_6_FALSE@am__append_6 =
10 DIST_COMMON = $(drv_dsl_cpe_api_include_HEADERS) $(srcdir)/Makefile.am \
12 --- a/src/common/drv_dsl_cpe_os_linux.c
13 +++ b/src/common/drv_dsl_cpe_os_linux.c
18 +#include <linux/device.h>
19 #include "drv_dsl_cpe_api.h"
20 #include "drv_dsl_cpe_api_ioctl.h"
22 @@ -238,14 +239,7 @@ static DSL_long_t DSL_DRV_Ioctls(DSL_DRV
25 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
26 - if (pFile->f_dentry != DSL_NULL)
28 - pINode = pFile->f_dentry->d_inode;
34 + pINode = file_inode(pFile);
37 if (pINode == DSL_NULL)
38 @@ -1118,6 +1112,9 @@ static void DSL_DRV_DebugInit(void)
42 +static struct class *dsl_class;
43 +static dev_t dsl_devt;
45 /* Entry point of driver */
46 int __init DSL_ModuleInit(void)
48 @@ -1156,6 +1153,10 @@ int __init DSL_ModuleInit(void)
50 DSL_DRV_DevNodeInit();
52 + dsl_class = class_create(THIS_MODULE, "dsl_cpe_api0");
53 + dsl_devt = MKDEV(DRV_DSL_CPE_API_DEV_MAJOR, 0);
54 + device_create(dsl_class, NULL, dsl_devt, NULL, "dsl_cpe_api0");
59 @@ -1163,6 +1164,11 @@ void __exit DSL_ModuleCleanup(void)
61 printk("Module will be unloaded"DSL_DRV_CRLF);
63 + device_destroy(dsl_class, dsl_devt);
65 + class_destroy(dsl_class);
68 unregister_chrdev(nMajorNum, DRV_DSL_CPE_API_DEV_NAME);