forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/pci/cx25821/cx25821-core.c
....@@ -1,20 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for the Conexant CX25821 PCIe bridge
34 *
45 * Copyright (C) 2009 Conexant Systems Inc.
56 * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com>
67 * 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.
188 */
199
2010 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -1350,11 +1340,11 @@
13501340 struct cx25821_dev *dev = get_cx25821(v4l2_dev);
13511341
13521342 cx25821_shutdown(dev);
1353
- pci_disable_device(pci_dev);
13541343
13551344 /* unregister stuff */
13561345 if (pci_dev->irq)
13571346 free_irq(pci_dev->irq, dev);
1347
+ pci_disable_device(pci_dev);
13581348
13591349 cx25821_dev_unregister(dev);
13601350 v4l2_device_unregister(v4l2_dev);
....@@ -1386,9 +1376,6 @@
13861376 .id_table = cx25821_pci_tbl,
13871377 .probe = cx25821_initdev,
13881378 .remove = cx25821_finidev,
1389
- /* TODO */
1390
- .suspend = NULL,
1391
- .resume = NULL,
13921379 };
13931380
13941381 static int __init cx25821_init(void)