.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for the Conexant CX23885 PCIe bridge |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
16 | 6 | */ |
---|
17 | 7 | |
---|
18 | 8 | #include "cx23885.h" |
---|
.. | .. |
---|
1996 | 1986 | * and report errors if we think we're tampering with a GPIo that might |
---|
1997 | 1987 | * be assigned to the encoder (and used for the host bus). |
---|
1998 | 1988 | * |
---|
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 |
---|
2002 | 1992 | */ |
---|
2003 | 1993 | void cx23885_gpio_set(struct cx23885_dev *dev, u32 mask) |
---|
2004 | 1994 | { |
---|
.. | .. |
---|
2164 | 2154 | err = pci_set_dma_mask(pci_dev, 0xffffffff); |
---|
2165 | 2155 | if (err) { |
---|
2166 | 2156 | pr_err("%s/0: Oops: no 32bit PCI DMA ???\n", dev->name); |
---|
2167 | | - goto fail_ctrl; |
---|
| 2157 | + goto fail_dma_set_mask; |
---|
2168 | 2158 | } |
---|
2169 | 2159 | |
---|
2170 | 2160 | err = request_irq(pci_dev->irq, cx23885_irq, |
---|
.. | .. |
---|
2172 | 2162 | if (err < 0) { |
---|
2173 | 2163 | pr_err("%s: can't get IRQ %d\n", |
---|
2174 | 2164 | dev->name, pci_dev->irq); |
---|
2175 | | - goto fail_irq; |
---|
| 2165 | + goto fail_dma_set_mask; |
---|
2176 | 2166 | } |
---|
2177 | 2167 | |
---|
2178 | 2168 | switch (dev->board) { |
---|
.. | .. |
---|
2194 | 2184 | |
---|
2195 | 2185 | return 0; |
---|
2196 | 2186 | |
---|
2197 | | -fail_irq: |
---|
| 2187 | +fail_dma_set_mask: |
---|
2198 | 2188 | cx23885_dev_unregister(dev); |
---|
2199 | 2189 | fail_ctrl: |
---|
2200 | 2190 | v4l2_ctrl_handler_free(hdl); |
---|
.. | .. |
---|
2249 | 2239 | .id_table = cx23885_pci_tbl, |
---|
2250 | 2240 | .probe = cx23885_initdev, |
---|
2251 | 2241 | .remove = cx23885_finidev, |
---|
2252 | | - /* TODO */ |
---|
2253 | | - .suspend = NULL, |
---|
2254 | | - .resume = NULL, |
---|
2255 | 2242 | }; |
---|
2256 | 2243 | |
---|
2257 | 2244 | static int __init cx23885_init(void) |
---|