diff options
Diffstat (limited to 'drivers/media/pci/zoran/zoran_card.c')
| -rw-r--r-- | drivers/media/pci/zoran/zoran_card.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/drivers/media/pci/zoran/zoran_card.c b/drivers/media/pci/zoran/zoran_card.c index fffc54b452c8..a90a3b9b09bf 100644 --- a/drivers/media/pci/zoran/zoran_card.c +++ b/drivers/media/pci/zoran/zoran_card.c | |||
| @@ -369,7 +369,7 @@ static const unsigned short bt819_addrs[] = { 0x45, I2C_CLIENT_END }; | |||
| 369 | static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END }; | 369 | static const unsigned short bt856_addrs[] = { 0x44, I2C_CLIENT_END }; |
| 370 | static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END }; | 370 | static const unsigned short bt866_addrs[] = { 0x44, I2C_CLIENT_END }; |
| 371 | 371 | ||
| 372 | static struct card_info zoran_cards[NUM_CARDS] __devinitdata = { | 372 | static struct card_info zoran_cards[NUM_CARDS] = { |
| 373 | { | 373 | { |
| 374 | .type = DC10_old, | 374 | .type = DC10_old, |
| 375 | .name = "DC10(old)", | 375 | .name = "DC10(old)", |
| @@ -948,8 +948,7 @@ zoran_open_init_params (struct zoran *zr) | |||
| 948 | zr->testing = 0; | 948 | zr->testing = 0; |
| 949 | } | 949 | } |
| 950 | 950 | ||
| 951 | static void __devinit | 951 | static void test_interrupts (struct zoran *zr) |
| 952 | test_interrupts (struct zoran *zr) | ||
| 953 | { | 952 | { |
| 954 | DEFINE_WAIT(wait); | 953 | DEFINE_WAIT(wait); |
| 955 | int timeout, icr; | 954 | int timeout, icr; |
| @@ -974,8 +973,7 @@ test_interrupts (struct zoran *zr) | |||
| 974 | btwrite(icr, ZR36057_ICR); | 973 | btwrite(icr, ZR36057_ICR); |
| 975 | } | 974 | } |
| 976 | 975 | ||
| 977 | static int __devinit | 976 | static int zr36057_init (struct zoran *zr) |
| 978 | zr36057_init (struct zoran *zr) | ||
| 979 | { | 977 | { |
| 980 | int j, err; | 978 | int j, err; |
| 981 | 979 | ||
| @@ -1083,7 +1081,7 @@ exit_free: | |||
| 1083 | return err; | 1081 | return err; |
| 1084 | } | 1082 | } |
| 1085 | 1083 | ||
| 1086 | static void __devexit zoran_remove(struct pci_dev *pdev) | 1084 | static void zoran_remove(struct pci_dev *pdev) |
| 1087 | { | 1085 | { |
| 1088 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); | 1086 | struct v4l2_device *v4l2_dev = dev_get_drvdata(&pdev->dev); |
| 1089 | struct zoran *zr = to_zoran(v4l2_dev); | 1087 | struct zoran *zr = to_zoran(v4l2_dev); |
| @@ -1129,9 +1127,8 @@ zoran_vdev_release (struct video_device *vdev) | |||
| 1129 | kfree(vdev); | 1127 | kfree(vdev); |
| 1130 | } | 1128 | } |
| 1131 | 1129 | ||
| 1132 | static struct videocodec_master * __devinit | 1130 | static struct videocodec_master *zoran_setup_videocodec(struct zoran *zr, |
| 1133 | zoran_setup_videocodec (struct zoran *zr, | 1131 | int type) |
| 1134 | int type) | ||
| 1135 | { | 1132 | { |
| 1136 | struct videocodec_master *m = NULL; | 1133 | struct videocodec_master *m = NULL; |
| 1137 | 1134 | ||
| @@ -1192,8 +1189,7 @@ static void zoran_subdev_notify(struct v4l2_subdev *sd, unsigned int cmd, void * | |||
| 1192 | * Scan for a Buz card (actually for the PCI controller ZR36057), | 1189 | * Scan for a Buz card (actually for the PCI controller ZR36057), |
| 1193 | * request the irq and map the io memory | 1190 | * request the irq and map the io memory |
| 1194 | */ | 1191 | */ |
| 1195 | static int __devinit zoran_probe(struct pci_dev *pdev, | 1192 | static int zoran_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
| 1196 | const struct pci_device_id *ent) | ||
| 1197 | { | 1193 | { |
| 1198 | unsigned char latency, need_latency; | 1194 | unsigned char latency, need_latency; |
| 1199 | struct zoran *zr; | 1195 | struct zoran *zr; |
| @@ -1459,7 +1455,7 @@ static struct pci_driver zoran_driver = { | |||
| 1459 | .name = "zr36067", | 1455 | .name = "zr36067", |
| 1460 | .id_table = zr36067_pci_tbl, | 1456 | .id_table = zr36067_pci_tbl, |
| 1461 | .probe = zoran_probe, | 1457 | .probe = zoran_probe, |
| 1462 | .remove = __devexit_p(zoran_remove), | 1458 | .remove = zoran_remove, |
| 1463 | }; | 1459 | }; |
| 1464 | 1460 | ||
| 1465 | static int __init zoran_init(void) | 1461 | static int __init zoran_init(void) |
