hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/media/pci/solo6x10/solo6x10-core.c
....@@ -1,21 +1,12 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
2
- * Copyright (C) 2010-2013 Bluecherry, LLC <http://www.bluecherrydvr.com>
3
+ * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com>
34 *
45 * Original author:
56 * Ben Collins <bcollins@ubuntu.com>
67 *
78 * Additional work by:
89 * John Brooks <john.brooks@bluecherry.net>
9
- *
10
- * This program is free software; you can redistribute it and/or modify
11
- * it under the terms of the GNU General Public License as published by
12
- * the Free Software Foundation; either version 2 of the License, or
13
- * (at your option) any later version.
14
- *
15
- * This program is distributed in the hope that it will be useful,
16
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
- * GNU General Public License for more details.
1910 */
2011
2112 #include <linux/kernel.h>
....@@ -429,6 +420,7 @@
429420 solo_dev->nr_chans);
430421
431422 if (device_register(dev)) {
423
+ put_device(dev);
432424 dev->parent = NULL;
433425 return -ENOMEM;
434426 }
....@@ -512,7 +504,7 @@
512504 default:
513505 dev_warn(&pdev->dev, "Invalid chip_id 0x%02x, assuming 4 ch\n",
514506 chip_id);
515
- /* fall through */
507
+ fallthrough;
516508 case 5:
517509 solo_dev->nr_chans = 4;
518510 solo_dev->nr_ext = 1;