forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/ivtv/ivtv-driver.c
....@@ -23,7 +23,6 @@
2323 * Driver for the Conexant CX23415/CX23416 chip.
2424 * Author: Kevin Thayer (nufan_wfk at yahoo.com)
2525 * License: GPL
26
- * http://www.ivtvdriver.org
2726 *
2827 * -----
2928 * MPG600/MPG160 support by T.Adachi <tadachi@tadachi-net.com>
....@@ -723,7 +722,7 @@
723722 IVTV_ERR(" %s based\n", chipname);
724723 IVTV_ERR("Defaulting to %s card\n", itv->card->name);
725724 IVTV_ERR("Please mail the vendor/device and subsystem vendor/device IDs and what kind of\n");
726
- IVTV_ERR("card you have to the ivtv-devel mailinglist (www.ivtvdriver.org)\n");
725
+ IVTV_ERR("card you have to the linux-media mailinglist (www.linuxtv.org)\n");
727726 IVTV_ERR("Prefix your subject line with [UNKNOWN IVTV CARD].\n");
728727 }
729728 itv->v4l2_cap = itv->card->v4l2_capabilities;
....@@ -738,8 +737,6 @@
738737 */
739738 static int ivtv_init_struct1(struct ivtv *itv)
740739 {
741
- struct sched_param param = { .sched_priority = 99 };
742
-
743740 itv->base_addr = pci_resource_start(itv->pdev, 0);
744741 itv->enc_mbox.max_mbox = 2; /* the encoder has 3 mailboxes (0-2) */
745742 itv->dec_mbox.max_mbox = 1; /* the decoder has 2 mailboxes (0-1) */
....@@ -759,7 +756,7 @@
759756 return -1;
760757 }
761758 /* must use the FIFO scheduler as it is realtime sensitive */
762
- sched_setscheduler(itv->irq_worker_task, SCHED_FIFO, &param);
759
+ sched_set_fifo(itv->irq_worker_task);
763760
764761 kthread_init_work(&itv->irq_work, ivtv_irq_work_handler);
765762
....@@ -910,7 +907,7 @@
910907
911908 /* check which i2c devices are actually found */
912909 for (i = 0; i < 32; i++) {
913
- u32 device = 1 << i;
910
+ u32 device = BIT(i);
914911
915912 if (!(device & hw))
916913 continue;
....@@ -1042,7 +1039,7 @@
10421039 /* map io memory */
10431040 IVTV_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n",
10441041 (u64)itv->base_addr + IVTV_ENCODER_OFFSET, IVTV_ENCODER_SIZE);
1045
- itv->enc_mem = ioremap_nocache(itv->base_addr + IVTV_ENCODER_OFFSET,
1042
+ itv->enc_mem = ioremap(itv->base_addr + IVTV_ENCODER_OFFSET,
10461043 IVTV_ENCODER_SIZE);
10471044 if (!itv->enc_mem) {
10481045 IVTV_ERR("ioremap failed. Can't get a window into CX23415/6 encoder memory\n");
....@@ -1056,7 +1053,7 @@
10561053 if (itv->has_cx23415) {
10571054 IVTV_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n",
10581055 (u64)itv->base_addr + IVTV_DECODER_OFFSET, IVTV_DECODER_SIZE);
1059
- itv->dec_mem = ioremap_nocache(itv->base_addr + IVTV_DECODER_OFFSET,
1056
+ itv->dec_mem = ioremap(itv->base_addr + IVTV_DECODER_OFFSET,
10601057 IVTV_DECODER_SIZE);
10611058 if (!itv->dec_mem) {
10621059 IVTV_ERR("ioremap failed. Can't get a window into CX23415 decoder memory\n");
....@@ -1075,7 +1072,7 @@
10751072 IVTV_DEBUG_INFO("attempting ioremap at 0x%llx len 0x%08x\n",
10761073 (u64)itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE);
10771074 itv->reg_mem =
1078
- ioremap_nocache(itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE);
1075
+ ioremap(itv->base_addr + IVTV_REG_OFFSET, IVTV_REG_SIZE);
10791076 if (!itv->reg_mem) {
10801077 IVTV_ERR("ioremap failed. Can't get a window into CX23415/6 register space\n");
10811078 IVTV_ERR("Each capture card with a CX23415/6 needs 64 kB of vmalloc address space for this window\n");