diff options
author | root <root@ipepdvpc4> | 2011-07-19 19:13:12 +0200 |
---|---|---|
committer | root <root@ipepdvpc4> | 2011-07-19 19:13:12 +0200 |
commit | 9756b55de5749b495481be4b30b87d6162b14f62 (patch) | |
tree | afa3288de7988e68f0e5f0b231865b4cae11cb91 /driver/sysfs.c | |
parent | 97f2773f8c98a158cecb0647a841eb679be2ad9d (diff) | |
download | ipecamera-9756b55de5749b495481be4b30b87d6162b14f62.tar.gz ipecamera-9756b55de5749b495481be4b30b87d6162b14f62.tar.bz2 ipecamera-9756b55de5749b495481be4b30b87d6162b14f62.tar.xz ipecamera-9756b55de5749b495481be4b30b87d6162b14f62.zip |
Fix few compilation issues with recent kernels
Diffstat (limited to 'driver/sysfs.c')
-rw-r--r-- | driver/sysfs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/sysfs.c b/driver/sysfs.c index 59536ab..47e4395 100644 --- a/driver/sysfs.c +++ b/driver/sysfs.c @@ -52,7 +52,10 @@ static int _pcidriver_sysfs_initialize(pcidriver_privdata_t *privdata, return -ENOMEM; sysfs_attr->attr.mode = S_IRUGO; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24) + // DS: Shall we lock now while accessing driver data structures??? sysfs_attr->attr.owner = THIS_MODULE; +#endif sysfs_attr->show = callback; sysfs_attr->store = NULL; |