diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-19 06:54:00 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@shinybook.infradead.org> | 2005-05-19 06:54:00 -0400 |
commit | 7063e6c717f6108c4b3fc3135a516c86ef944870 (patch) | |
tree | ec6eec10b4dc93474100e6e366df028bd3314fda /drivers/media/dvb/b2c2/skystar2.c | |
parent | 7ca0026495dbb644b4e32ede76be44072cb2bc7a (diff) | |
parent | 05d3794aa8bd3b2c9f7920a05003c331cdeb75c5 (diff) |
Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'drivers/media/dvb/b2c2/skystar2.c')
-rw-r--r-- | drivers/media/dvb/b2c2/skystar2.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/media/dvb/b2c2/skystar2.c b/drivers/media/dvb/b2c2/skystar2.c index 336c178fcd5f..acbc4c34f72a 100644 --- a/drivers/media/dvb/b2c2/skystar2.c +++ b/drivers/media/dvb/b2c2/skystar2.c | |||
@@ -97,7 +97,7 @@ struct adapter { | |||
97 | u8 mac_addr[8]; | 97 | u8 mac_addr[8]; |
98 | u32 dw_sram_type; | 98 | u32 dw_sram_type; |
99 | 99 | ||
100 | struct dvb_adapter *dvb_adapter; | 100 | struct dvb_adapter dvb_adapter; |
101 | struct dvb_demux demux; | 101 | struct dvb_demux demux; |
102 | struct dmxdev dmxdev; | 102 | struct dmxdev dmxdev; |
103 | struct dmx_frontend hw_frontend; | 103 | struct dmx_frontend hw_frontend; |
@@ -2461,7 +2461,7 @@ static void frontend_init(struct adapter *skystar2) | |||
2461 | skystar2->pdev->subsystem_vendor, | 2461 | skystar2->pdev->subsystem_vendor, |
2462 | skystar2->pdev->subsystem_device); | 2462 | skystar2->pdev->subsystem_device); |
2463 | } else { | 2463 | } else { |
2464 | if (dvb_register_frontend(skystar2->dvb_adapter, skystar2->fe)) { | 2464 | if (dvb_register_frontend(&skystar2->dvb_adapter, skystar2->fe)) { |
2465 | printk("skystar2: Frontend registration failed!\n"); | 2465 | printk("skystar2: Frontend registration failed!\n"); |
2466 | if (skystar2->fe->ops->release) | 2466 | if (skystar2->fe->ops->release) |
2467 | skystar2->fe->ops->release(skystar2->fe); | 2467 | skystar2->fe->ops->release(skystar2->fe); |
@@ -2486,17 +2486,17 @@ static int skystar2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2486 | if (ret < 0) | 2486 | if (ret < 0) |
2487 | goto out; | 2487 | goto out; |
2488 | 2488 | ||
2489 | ret = dvb_register_adapter(&dvb_adapter, skystar2_pci_driver.name, | 2489 | adapter = pci_get_drvdata(pdev); |
2490 | dvb_adapter = &adapter->dvb_adapter; | ||
2491 | |||
2492 | ret = dvb_register_adapter(dvb_adapter, skystar2_pci_driver.name, | ||
2490 | THIS_MODULE); | 2493 | THIS_MODULE); |
2491 | if (ret < 0) { | 2494 | if (ret < 0) { |
2492 | printk("%s: Error registering DVB adapter\n", __FUNCTION__); | 2495 | printk("%s: Error registering DVB adapter\n", __FUNCTION__); |
2493 | goto err_halt; | 2496 | goto err_halt; |
2494 | } | 2497 | } |
2495 | 2498 | ||
2496 | adapter = pci_get_drvdata(pdev); | ||
2497 | |||
2498 | dvb_adapter->priv = adapter; | 2499 | dvb_adapter->priv = adapter; |
2499 | adapter->dvb_adapter = dvb_adapter; | ||
2500 | 2500 | ||
2501 | 2501 | ||
2502 | init_MUTEX(&adapter->i2c_sem); | 2502 | init_MUTEX(&adapter->i2c_sem); |
@@ -2541,7 +2541,7 @@ static int skystar2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2541 | adapter->dmxdev.demux = dmx; | 2541 | adapter->dmxdev.demux = dmx; |
2542 | adapter->dmxdev.capabilities = 0; | 2542 | adapter->dmxdev.capabilities = 0; |
2543 | 2543 | ||
2544 | ret = dvb_dmxdev_init(&adapter->dmxdev, adapter->dvb_adapter); | 2544 | ret = dvb_dmxdev_init(&adapter->dmxdev, &adapter->dvb_adapter); |
2545 | if (ret < 0) | 2545 | if (ret < 0) |
2546 | goto err_dmx_release; | 2546 | goto err_dmx_release; |
2547 | 2547 | ||
@@ -2559,7 +2559,7 @@ static int skystar2_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
2559 | if (ret < 0) | 2559 | if (ret < 0) |
2560 | goto err_remove_mem_frontend; | 2560 | goto err_remove_mem_frontend; |
2561 | 2561 | ||
2562 | dvb_net_init(adapter->dvb_adapter, &adapter->dvbnet, &dvbdemux->dmx); | 2562 | dvb_net_init(&adapter->dvb_adapter, &adapter->dvbnet, &dvbdemux->dmx); |
2563 | 2563 | ||
2564 | frontend_init(adapter); | 2564 | frontend_init(adapter); |
2565 | out: | 2565 | out: |
@@ -2576,7 +2576,7 @@ err_dmx_release: | |||
2576 | err_i2c_del: | 2576 | err_i2c_del: |
2577 | i2c_del_adapter(&adapter->i2c_adap); | 2577 | i2c_del_adapter(&adapter->i2c_adap); |
2578 | err_dvb_unregister: | 2578 | err_dvb_unregister: |
2579 | dvb_unregister_adapter(adapter->dvb_adapter); | 2579 | dvb_unregister_adapter(&adapter->dvb_adapter); |
2580 | err_halt: | 2580 | err_halt: |
2581 | driver_halt(pdev); | 2581 | driver_halt(pdev); |
2582 | goto out; | 2582 | goto out; |
@@ -2605,7 +2605,7 @@ static void skystar2_remove(struct pci_dev *pdev) | |||
2605 | if (adapter->fe != NULL) | 2605 | if (adapter->fe != NULL) |
2606 | dvb_unregister_frontend(adapter->fe); | 2606 | dvb_unregister_frontend(adapter->fe); |
2607 | 2607 | ||
2608 | dvb_unregister_adapter(adapter->dvb_adapter); | 2608 | dvb_unregister_adapter(&adapter->dvb_adapter); |
2609 | 2609 | ||
2610 | i2c_del_adapter(&adapter->i2c_adap); | 2610 | i2c_del_adapter(&adapter->i2c_adap); |
2611 | 2611 | ||