diff options
author | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-12 12:57:55 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-12 12:57:55 -0500 |
commit | 659dba34807692a6ebd55e7859dff2c7cb1b005d (patch) | |
tree | cbc8454fa57af5d3e5d37a3dbbca2c7da92c6ef0 /drivers/media | |
parent | 3640543df26fd38f31f0c6decc35c07be2a6307c (diff) | |
parent | d7aef138f3c08c5bbab567bc9a84e43a88f50395 (diff) |
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
* 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6:
i2c: Fix OMAP clock prescaler to match the comment
i2c: Refactor a kfree in i2c-dev
i2c: Fix return value check in i2c-dev
i2c: Enable PEC on more i2c-i801 devices
i2c: Discard the i2c algo del_bus wrappers
i2c: New ARM Versatile/Realview bus driver
i2c: fix broken ds1337 initialization
i2c: i2c-i801 documentation update
i2c: Use the __ATTR macro where possible
i2c: Whitespace cleanups
i2c: Use put_user instead of copy_to_user where possible
i2c: New Atmel AT91 bus driver
i2c: Add support for nested i2c bus locking
i2c: Cleanups to the i2c-nforce2 bus driver
i2c: Add request/release_mem_region to i2c-ibm_iic bus driver
i2c: New Philips PNX bus driver
i2c: Delete the broken i2c-ite bus driver
i2c: Update the list of driver IDs
i2c: Fix documentation typos
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/pluto2/pluto2.c | 8 | ||||
-rw-r--r-- | drivers/media/video/bt8xx/bttv-i2c.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-core.c | 2 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-vp3054-i2c.c | 2 | ||||
-rw-r--r-- | drivers/media/video/vino.c | 2 | ||||
-rw-r--r-- | drivers/media/video/zoran_card.c | 2 |
6 files changed, 9 insertions, 13 deletions
diff --git a/drivers/media/dvb/pluto2/pluto2.c b/drivers/media/dvb/pluto2/pluto2.c index 8e4ce101eb22..ffda71dfdd65 100644 --- a/drivers/media/dvb/pluto2/pluto2.c +++ b/drivers/media/dvb/pluto2/pluto2.c | |||
@@ -650,7 +650,7 @@ static int __devinit pluto2_probe(struct pci_dev *pdev, | |||
650 | /* dvb */ | 650 | /* dvb */ |
651 | ret = dvb_register_adapter(&pluto->dvb_adapter, DRIVER_NAME, THIS_MODULE, &pdev->dev); | 651 | ret = dvb_register_adapter(&pluto->dvb_adapter, DRIVER_NAME, THIS_MODULE, &pdev->dev); |
652 | if (ret < 0) | 652 | if (ret < 0) |
653 | goto err_i2c_bit_del_bus; | 653 | goto err_i2c_del_adapter; |
654 | 654 | ||
655 | dvb_adapter = &pluto->dvb_adapter; | 655 | dvb_adapter = &pluto->dvb_adapter; |
656 | 656 | ||
@@ -712,8 +712,8 @@ err_dvb_dmx_release: | |||
712 | dvb_dmx_release(dvbdemux); | 712 | dvb_dmx_release(dvbdemux); |
713 | err_dvb_unregister_adapter: | 713 | err_dvb_unregister_adapter: |
714 | dvb_unregister_adapter(dvb_adapter); | 714 | dvb_unregister_adapter(dvb_adapter); |
715 | err_i2c_bit_del_bus: | 715 | err_i2c_del_adapter: |
716 | i2c_bit_del_bus(&pluto->i2c_adap); | 716 | i2c_del_adapter(&pluto->i2c_adap); |
717 | err_pluto_hw_exit: | 717 | err_pluto_hw_exit: |
718 | pluto_hw_exit(pluto); | 718 | pluto_hw_exit(pluto); |
719 | err_free_irq: | 719 | err_free_irq: |
@@ -748,7 +748,7 @@ static void __devexit pluto2_remove(struct pci_dev *pdev) | |||
748 | dvb_dmxdev_release(&pluto->dmxdev); | 748 | dvb_dmxdev_release(&pluto->dmxdev); |
749 | dvb_dmx_release(dvbdemux); | 749 | dvb_dmx_release(dvbdemux); |
750 | dvb_unregister_adapter(dvb_adapter); | 750 | dvb_unregister_adapter(dvb_adapter); |
751 | i2c_bit_del_bus(&pluto->i2c_adap); | 751 | i2c_del_adapter(&pluto->i2c_adap); |
752 | pluto_hw_exit(pluto); | 752 | pluto_hw_exit(pluto); |
753 | free_irq(pdev->irq, pluto); | 753 | free_irq(pdev->irq, pluto); |
754 | pci_iounmap(pdev, pluto->io_mem); | 754 | pci_iounmap(pdev, pluto->io_mem); |
diff --git a/drivers/media/video/bt8xx/bttv-i2c.c b/drivers/media/video/bt8xx/bttv-i2c.c index 70de6c96e201..62b873076e09 100644 --- a/drivers/media/video/bt8xx/bttv-i2c.c +++ b/drivers/media/video/bt8xx/bttv-i2c.c | |||
@@ -479,11 +479,7 @@ int __devexit fini_bttv_i2c(struct bttv *btv) | |||
479 | if (0 != btv->i2c_rc) | 479 | if (0 != btv->i2c_rc) |
480 | return 0; | 480 | return 0; |
481 | 481 | ||
482 | if (btv->use_i2c_hw) { | 482 | return i2c_del_adapter(&btv->c.i2c_adap); |
483 | return i2c_del_adapter(&btv->c.i2c_adap); | ||
484 | } else { | ||
485 | return i2c_bit_del_bus(&btv->c.i2c_adap); | ||
486 | } | ||
487 | } | 483 | } |
488 | 484 | ||
489 | /* | 485 | /* |
diff --git a/drivers/media/video/cx88/cx88-core.c b/drivers/media/video/cx88/cx88-core.c index 4b655f2ef278..453af5e943ff 100644 --- a/drivers/media/video/cx88/cx88-core.c +++ b/drivers/media/video/cx88/cx88-core.c | |||
@@ -1153,7 +1153,7 @@ void cx88_core_put(struct cx88_core *core, struct pci_dev *pci) | |||
1153 | mutex_lock(&devlist); | 1153 | mutex_lock(&devlist); |
1154 | cx88_ir_fini(core); | 1154 | cx88_ir_fini(core); |
1155 | if (0 == core->i2c_rc) | 1155 | if (0 == core->i2c_rc) |
1156 | i2c_bit_del_bus(&core->i2c_adap); | 1156 | i2c_del_adapter(&core->i2c_adap); |
1157 | list_del(&core->devlist); | 1157 | list_del(&core->devlist); |
1158 | iounmap(core->lmmio); | 1158 | iounmap(core->lmmio); |
1159 | cx88_devcount--; | 1159 | cx88_devcount--; |
diff --git a/drivers/media/video/cx88/cx88-vp3054-i2c.c b/drivers/media/video/cx88/cx88-vp3054-i2c.c index 2b4f1970c7df..6068c9bf82cd 100644 --- a/drivers/media/video/cx88/cx88-vp3054-i2c.c +++ b/drivers/media/video/cx88/cx88-vp3054-i2c.c | |||
@@ -168,7 +168,7 @@ void vp3054_i2c_remove(struct cx8802_dev *dev) | |||
168 | dev->core->board != CX88_BOARD_DNTV_LIVE_DVB_T_PRO) | 168 | dev->core->board != CX88_BOARD_DNTV_LIVE_DVB_T_PRO) |
169 | return; | 169 | return; |
170 | 170 | ||
171 | i2c_bit_del_bus(&vp3054_i2c->adap); | 171 | i2c_del_adapter(&vp3054_i2c->adap); |
172 | kfree(vp3054_i2c); | 172 | kfree(vp3054_i2c); |
173 | } | 173 | } |
174 | 174 | ||
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 6b6dff4d236a..a373c142e742 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -782,7 +782,7 @@ static int vino_i2c_add_bus(void) | |||
782 | 782 | ||
783 | static int vino_i2c_del_bus(void) | 783 | static int vino_i2c_del_bus(void) |
784 | { | 784 | { |
785 | return i2c_sgi_del_bus(&vino_i2c_adapter); | 785 | return i2c_del_adapter(&vino_i2c_adapter); |
786 | } | 786 | } |
787 | 787 | ||
788 | static int i2c_camera_command(unsigned int cmd, void *arg) | 788 | static int i2c_camera_command(unsigned int cmd, void *arg) |
diff --git a/drivers/media/video/zoran_card.c b/drivers/media/video/zoran_card.c index 653822ce391c..4d1eb2fba34a 100644 --- a/drivers/media/video/zoran_card.c +++ b/drivers/media/video/zoran_card.c | |||
@@ -849,7 +849,7 @@ zoran_register_i2c (struct zoran *zr) | |||
849 | static void | 849 | static void |
850 | zoran_unregister_i2c (struct zoran *zr) | 850 | zoran_unregister_i2c (struct zoran *zr) |
851 | { | 851 | { |
852 | i2c_bit_del_bus((&zr->i2c_adapter)); | 852 | i2c_del_adapter(&zr->i2c_adapter); |
853 | } | 853 | } |
854 | 854 | ||
855 | /* Check a zoran_params struct for correctness, insert default params */ | 855 | /* Check a zoran_params struct for correctness, insert default params */ |