Re: [patch, -git] drivers/media build fix for modular builds

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mauro Carvalho Chehab
Date: Wednesday, April 30, 2008 - 9:12 am

On Wed, 30 Apr 2008 17:48:10 +0200
Mike Galbraith <efault@gmx.de> wrote:


Detach order were wrong.

Try this, please.

diff -r d05d249a98a7 linux/drivers/media/video/cx88/cx88-dvb.c
--- a/linux/drivers/media/video/cx88/cx88-dvb.c	Wed Apr 30 12:45:00 2008 -0300
+++ b/linux/drivers/media/video/cx88/cx88-dvb.c	Wed Apr 30 13:09:51 2008 -0300
@@ -516,8 +516,8 @@
 	if (!fe) {
 		printk(KERN_ERR "%s/2: xc3028 attach failed\n",
 		       dev->core->name);
+		dvb_unregister_frontend(dev->dvb.frontend);
 		dvb_frontend_detach(dev->dvb.frontend);
-		dvb_unregister_frontend(dev->dvb.frontend);
 		dev->dvb.frontend = NULL;
 		return -EINVAL;
 	}
diff -r d05d249a98a7 linux/drivers/media/video/saa7134/saa7134-dvb.c
--- a/linux/drivers/media/video/saa7134/saa7134-dvb.c	Wed Apr 30 12:45:00 2008 -0300
+++ b/linux/drivers/media/video/saa7134/saa7134-dvb.c	Wed Apr 30 13:09:51 2008 -0300
@@ -1345,8 +1345,8 @@
 	return ret;
 
 dettach_frontend:
+	dvb_unregister_frontend(dev->dvb.frontend);
 	dvb_frontend_detach(dev->dvb.frontend);
-	dvb_unregister_frontend(dev->dvb.frontend);
 	dev->dvb.frontend = NULL;
 
 	return -1;

Cheers,
Mauro
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GIT PATCHES] V4L/DVB updates and fixes for 2.6.26, Mauro Carvalho Chehab, (Tue Apr 29, 2:50 pm)
Re: [GIT PATCHES] V4L/DVB updates and fixes for 2.6.26, Linus Torvalds, (Tue Apr 29, 2:59 pm)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates and ..., Mauro Carvalho Chehab, (Tue Apr 29, 5:00 pm)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates and ..., Patrick Boettcher, (Wed Apr 30, 1:02 am)
Re: [patch, -git] drivers/media build fix for modular builds, Mauro Carvalho Chehab, (Wed Apr 30, 8:25 am)
Re: [v4l-dvb-maintainer] [patch, -git] drivers/media build ..., Mauro Carvalho Chehab, (Wed Apr 30, 8:48 am)
Re: [patch, -git] drivers/media build fix for modular builds, Mauro Carvalho Chehab, (Wed Apr 30, 9:12 am)
Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates and ..., Mauro Carvalho Chehab, (Wed Apr 30, 12:03 pm)
Re: [patch, -git] drivers/media build fix for modular builds, Mauro Carvalho Chehab, (Wed Apr 30, 2:35 pm)