diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2004-09-23 05:39:15 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2004-09-23 05:39:15 +0000 |
commit | c158a36c4cfef024ba1be05a163cfd4b00ebea21 (patch) | |
tree | ca2f83f1cda34c20c3df6f558f54c3ff10eb6728 /linux/radeon_i2c.c | |
parent | af326f6f0c26191b4aef2183fb485e58495b29a5 (diff) |
1) switches from class_sysfs to drm sysfs implementation to allow
customization
2) compiles again on 2.4, but doesn't work
Diffstat (limited to 'linux/radeon_i2c.c')
-rw-r--r-- | linux/radeon_i2c.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/radeon_i2c.c b/linux/radeon_i2c.c index a68b9ee1..e2591723 100644 --- a/linux/radeon_i2c.c +++ b/linux/radeon_i2c.c @@ -19,6 +19,9 @@ #include <linux/delay.h> #include <linux/pci.h> #include <linux/fb.h> +#include <linux/version.h> + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) #include <asm/io.h> #include <video/radeon.h> @@ -150,3 +153,5 @@ void radeon_delete_i2c_busses(drm_device_t *dev) dev_priv->i2c[i].dev = NULL; } } + +#endif |