forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx23885/cx23885-core.c
....@@ -1,18 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for the Conexant CX23885 PCIe bridge
34 *
45 * Copyright (c) 2006 Steven Toth <stoth@linuxtv.org>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- *
15
- * GNU General Public License for more details.
166 */
177
188 #include "cx23885.h"
....@@ -1996,9 +1986,9 @@
19961986 * and report errors if we think we're tampering with a GPIo that might
19971987 * be assigned to the encoder (and used for the host bus).
19981988 *
1999
- * GPIO 2 thru 0 - On the cx23885 bridge
2000
- * GPIO 18 thru 3 - On the cx23417 host bus interface
2001
- * GPIO 23 thru 19 - On the cx25840 a/v core
1989
+ * GPIO 2 through 0 - On the cx23885 bridge
1990
+ * GPIO 18 through 3 - On the cx23417 host bus interface
1991
+ * GPIO 23 through 19 - On the cx25840 a/v core
20021992 */
20031993 void cx23885_gpio_set(struct cx23885_dev *dev, u32 mask)
20041994 {
....@@ -2164,7 +2154,7 @@
21642154 err = pci_set_dma_mask(pci_dev, 0xffffffff);
21652155 if (err) {
21662156 pr_err("%s/0: Oops: no 32bit PCI DMA ???\n", dev->name);
2167
- goto fail_ctrl;
2157
+ goto fail_dma_set_mask;
21682158 }
21692159
21702160 err = request_irq(pci_dev->irq, cx23885_irq,
....@@ -2172,7 +2162,7 @@
21722162 if (err < 0) {
21732163 pr_err("%s: can't get IRQ %d\n",
21742164 dev->name, pci_dev->irq);
2175
- goto fail_irq;
2165
+ goto fail_dma_set_mask;
21762166 }
21772167
21782168 switch (dev->board) {
....@@ -2194,7 +2184,7 @@
21942184
21952185 return 0;
21962186
2197
-fail_irq:
2187
+fail_dma_set_mask:
21982188 cx23885_dev_unregister(dev);
21992189 fail_ctrl:
22002190 v4l2_ctrl_handler_free(hdl);
....@@ -2249,9 +2239,6 @@
22492239 .id_table = cx23885_pci_tbl,
22502240 .probe = cx23885_initdev,
22512241 .remove = cx23885_finidev,
2252
- /* TODO */
2253
- .suspend = NULL,
2254
- .resume = NULL,
22552242 };
22562243
22572244 static int __init cx23885_init(void)