diff options
author | Arik Nemtsov <arik@wizery.com> | 2014-04-09 15:04:13 +0300 |
---|---|---|
committer | Luis R. Rodriguez <mcgrof@do-not-panic.com> | 2014-04-17 16:23:08 -0700 |
commit | c0371423dbc4c824fd845f2776ec28c64e514f7e (patch) | |
tree | 8ec5fa1959973b8dc674e42b3f0048daea5b79e1 /backport | |
parent | 16744e51fa49e77bcfe76b5100cc555a4fd7e272 (diff) |
backports: device: don't redefine DEVICE_ATTR_RO
Some old custom kernels have it defined.
Signed-off-by: Arik Nemtsov <arikx.nemtsov@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
Diffstat (limited to 'backport')
-rw-r--r-- | backport/backport-include/linux/device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/backport-include/linux/device.h b/backport/backport-include/linux/device.h index ebfc01a5..a54756a4 100644 --- a/backport/backport-include/linux/device.h +++ b/backport/backport-include/linux/device.h @@ -193,8 +193,10 @@ backport_device_release_driver(struct device *dev) #endif /* LINUX_VERSION_CODE <= KERNEL_VERSION(3,6,0) */ #if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0) +#ifndef DEVICE_ATTR_RO #define DEVICE_ATTR_RO(_name) \ struct device_attribute dev_attr_ ## _name = __ATTR_RO(_name); +#endif #define DEVICE_ATTR_RW(_name) \ struct device_attribute dev_attr_ ## _name = __ATTR_RW(_name) #endif |