RivaTV will not compile in recent kernels
Status: Alpha
Brought to you by:
yvanoers
Just tried to compile latest CVS and I get the attached make errors.
I WOULD be trying a release, but since CVS-2006-04-29 refused to compile with even MORE errors ... and I had to change the configure script to get that far too!
As you should be able to see, I'm running Linux kernel 2.6.21.
Output of make
Logged In: YES
user_id=655413
Originator: NO
Hi,
I'm trying to make rivatv work here in 2.6.22.6.
I'll post any patch I wrote here, since rivatv-devel email list seens to be down.
--- src/tw98.c.orig 2007-09-09 13:55:53.000000000 +0000
+++ src/tw98.c 2007-09-09 14:02:23.000000000 +0000
@@ -746,11 +746,10 @@
void __exit tw98_cleanup (void)
{
- int res = 0;
+ /* since kernel 2.6.21 i2c_del_driver() is a void fuction */
+ /* as a driver deregistration cannot fail. */
+ i2c_del_driver (&i2c_driver_tw98);
- if (0 != (res = i2c_del_driver (&i2c_driver_tw98))) {
- TW98_PRINTK ("driver deregistration failed, module not removed.\n");
- }
}
module_init (tw98_init);
--- src/rivatv-driver.c.orig 2007-09-09 14:47:56.000000000 +0000
+++ src/rivatv-driver.c 2007-09-09 14:49:31.000000000 +0000
@@ -1159,7 +1159,7 @@
rivatv_devices = 0;
if (!binary)
- return pci_module_init (&rivatv_driver);
+ return pci_register_driver (&rivatv_driver);
else {
/* scan for all supported PCI devices */
struct pci_dev *pd;