diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-15 17:59:29 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-01-15 17:59:29 -0500 |
commit | f1dccedc8148026d9071c6805f7cb77374a9e56f (patch) | |
tree | ba4a630084b8d21309930321ff53a6ed4381c0f3 /drivers/media/dvb | |
parent | c943aa859c392eb4cc76d911daa1f261555075b2 (diff) | |
parent | 0238cb4e7583c521bb3538060f98a73e65f61324 (diff) |
Merge ssh://master.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/media/dvb')
-rw-r--r-- | drivers/media/dvb/bt8xx/dvb-bt8xx.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/drivers/media/dvb/bt8xx/dvb-bt8xx.c index f65f64b00ff3..44fcbe77c8f9 100644 --- a/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/drivers/media/dvb/bt8xx/dvb-bt8xx.c | |||
@@ -779,9 +779,8 @@ static int __init dvb_bt8xx_load_card(struct dvb_bt8xx_card *card, u32 type) | |||
779 | return 0; | 779 | return 0; |
780 | } | 780 | } |
781 | 781 | ||
782 | static int dvb_bt8xx_probe(struct device *dev) | 782 | static int dvb_bt8xx_probe(struct bttv_sub_device *sub) |
783 | { | 783 | { |
784 | struct bttv_sub_device *sub = to_bttv_sub_dev(dev); | ||
785 | struct dvb_bt8xx_card *card; | 784 | struct dvb_bt8xx_card *card; |
786 | struct pci_dev* bttv_pci_dev; | 785 | struct pci_dev* bttv_pci_dev; |
787 | int ret; | 786 | int ret; |
@@ -890,13 +889,13 @@ static int dvb_bt8xx_probe(struct device *dev) | |||
890 | return ret; | 889 | return ret; |
891 | } | 890 | } |
892 | 891 | ||
893 | dev_set_drvdata(dev, card); | 892 | dev_set_drvdata(&sub->dev, card); |
894 | return 0; | 893 | return 0; |
895 | } | 894 | } |
896 | 895 | ||
897 | static int dvb_bt8xx_remove(struct device *dev) | 896 | static int dvb_bt8xx_remove(struct bttv_sub_device *sub) |
898 | { | 897 | { |
899 | struct dvb_bt8xx_card *card = dev_get_drvdata(dev); | 898 | struct dvb_bt8xx_card *card = dev_get_drvdata(&sub->dev); |
900 | 899 | ||
901 | dprintk("dvb_bt8xx: unloading card%d\n", card->bttv_nr); | 900 | dprintk("dvb_bt8xx: unloading card%d\n", card->bttv_nr); |
902 | 901 | ||
@@ -919,14 +918,14 @@ static int dvb_bt8xx_remove(struct device *dev) | |||
919 | static struct bttv_sub_driver driver = { | 918 | static struct bttv_sub_driver driver = { |
920 | .drv = { | 919 | .drv = { |
921 | .name = "dvb-bt8xx", | 920 | .name = "dvb-bt8xx", |
922 | .probe = dvb_bt8xx_probe, | ||
923 | .remove = dvb_bt8xx_remove, | ||
924 | /* FIXME: | ||
925 | * .shutdown = dvb_bt8xx_shutdown, | ||
926 | * .suspend = dvb_bt8xx_suspend, | ||
927 | * .resume = dvb_bt8xx_resume, | ||
928 | */ | ||
929 | }, | 921 | }, |
922 | .probe = dvb_bt8xx_probe, | ||
923 | .remove = dvb_bt8xx_remove, | ||
924 | /* FIXME: | ||
925 | * .shutdown = dvb_bt8xx_shutdown, | ||
926 | * .suspend = dvb_bt8xx_suspend, | ||
927 | * .resume = dvb_bt8xx_resume, | ||
928 | */ | ||
930 | }; | 929 | }; |
931 | 930 | ||
932 | static int __init dvb_bt8xx_init(void) | 931 | static int __init dvb_bt8xx_init(void) |