diff options
author | Michael Hunold <devnull@localhost> | 2003-04-22 16:30:45 +0000 |
---|---|---|
committer | Michael Hunold <devnull@localhost> | 2003-04-22 16:30:45 +0000 |
commit | 5e8fe57d32dd88f0f84ff9c19e57d2e586dba9a7 (patch) | |
tree | 9dfb86fc68b477636df48c5b5ea3af5bfce6193e /linux/include/media/saa7146.h | |
parent | e4b81e505a1aee843073badd3062488776aecfa0 (diff) | |
download | mediapointer-dvb-s2-5e8fe57d32dd88f0f84ff9c19e57d2e586dba9a7.tar.gz mediapointer-dvb-s2-5e8fe57d32dd88f0f84ff9c19e57d2e586dba9a7.tar.bz2 |
- removed the compatibility crap around KBUILD_MODNAME from all drivers,
use KBUILD_BASENAME for 2.4 instead
some changes to the i2c core to make it work with both 2.4 and late 2.5
kernels (not done yet -- only interesting for analog drivers)
- add MODULE_DEVICE_TABLE to all drivers, so that pci "hotplug" can detect
the devices automatically. Alan Cox says, that we should use this to load
the firmware (not done yet)
- fix the long standing "insmod/rmmod with multiple budget cards" bug -- it
was a double kfree() call...
Diffstat (limited to 'linux/include/media/saa7146.h')
-rw-r--r-- | linux/include/media/saa7146.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/linux/include/media/saa7146.h b/linux/include/media/saa7146.h index ac8544da4..5358ae90d 100644 --- a/linux/include/media/saa7146.h +++ b/linux/include/media/saa7146.h @@ -31,7 +31,16 @@ extern unsigned int saa7146_debug; #define DEBUG_VARIABLE saa7146_debug #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,51) +#define DEBUG_PROLOG printk("%s: %s(): ",__stringify(KBUILD_BASENAME),__FUNCTION__) +#define INFO(x) { printk("%s: ",__stringify(KBUILD_BASENAME)); printk x; } +#else #define DEBUG_PROLOG printk("%s: %s(): ",__stringify(KBUILD_MODNAME),__FUNCTION__) +#define INFO(x) { printk("%s: ",__stringify(KBUILD_MODNAME)); printk x; } +#endif + +#define ERR(x) { DEBUG_PROLOG; printk x; } + #define DEB_S(x) if (0!=(DEBUG_VARIABLE&0x01)) { DEBUG_PROLOG; printk x; } /* simple debug messages */ #define DEB_D(x) if (0!=(DEBUG_VARIABLE&0x02)) { DEBUG_PROLOG; printk x; } /* more detailed debug messages */ #define DEB_EE(x) if (0!=(DEBUG_VARIABLE&0x04)) { DEBUG_PROLOG; printk x; } /* print enter and exit of functions */ @@ -40,9 +49,6 @@ extern unsigned int saa7146_debug; #define DEB_INT(x) if (0!=(DEBUG_VARIABLE&0x20)) { DEBUG_PROLOG; printk x; } /* interrupt debug messages */ #define DEB_CAP(x) if (0!=(DEBUG_VARIABLE&0x40)) { DEBUG_PROLOG; printk x; } /* capture debug messages */ -#define ERR(x) { DEBUG_PROLOG; printk x; } -#define INFO(x) { printk("%s: ",__stringify(KBUILD_MODNAME)); printk x; } - #define IER_DISABLE(x,y) \ saa7146_write(x, IER, saa7146_read(x, IER) & ~(y)); #define IER_ENABLE(x,y) \ |