| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Driver for the Conexant CX25821 PCIe bridge |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2009 Conexant Systems Inc. |
|---|
| 5 | 6 | * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com> |
|---|
| 6 | 7 | * Based on Steven Toth <stoth@linuxtv.org> cx23885 driver |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 14 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | | - * |
|---|
| 17 | | - * GNU General Public License for more details. |
|---|
| 18 | 8 | */ |
|---|
| 19 | 9 | |
|---|
| 20 | 10 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
|---|
| .. | .. |
|---|
| 1350 | 1340 | struct cx25821_dev *dev = get_cx25821(v4l2_dev); |
|---|
| 1351 | 1341 | |
|---|
| 1352 | 1342 | cx25821_shutdown(dev); |
|---|
| 1353 | | - pci_disable_device(pci_dev); |
|---|
| 1354 | 1343 | |
|---|
| 1355 | 1344 | /* unregister stuff */ |
|---|
| 1356 | 1345 | if (pci_dev->irq) |
|---|
| 1357 | 1346 | free_irq(pci_dev->irq, dev); |
|---|
| 1347 | + pci_disable_device(pci_dev); |
|---|
| 1358 | 1348 | |
|---|
| 1359 | 1349 | cx25821_dev_unregister(dev); |
|---|
| 1360 | 1350 | v4l2_device_unregister(v4l2_dev); |
|---|
| .. | .. |
|---|
| 1386 | 1376 | .id_table = cx25821_pci_tbl, |
|---|
| 1387 | 1377 | .probe = cx25821_initdev, |
|---|
| 1388 | 1378 | .remove = cx25821_finidev, |
|---|
| 1389 | | - /* TODO */ |
|---|
| 1390 | | - .suspend = NULL, |
|---|
| 1391 | | - .resume = NULL, |
|---|
| 1392 | 1379 | }; |
|---|
| 1393 | 1380 | |
|---|
| 1394 | 1381 | static int __init cx25821_init(void) |
|---|