| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * Copyright (C) 2010-2013 Bluecherry, LLC <http://www.bluecherrydvr.com> |
|---|
| 3 | + * Copyright (C) 2010-2013 Bluecherry, LLC <https://www.bluecherrydvr.com> |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Original author: |
|---|
| 5 | 6 | * Ben Collins <bcollins@ubuntu.com> |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Additional work by: |
|---|
| 8 | 9 | * 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. |
|---|
| 19 | 10 | */ |
|---|
| 20 | 11 | |
|---|
| 21 | 12 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 429 | 420 | solo_dev->nr_chans); |
|---|
| 430 | 421 | |
|---|
| 431 | 422 | if (device_register(dev)) { |
|---|
| 423 | + put_device(dev); |
|---|
| 432 | 424 | dev->parent = NULL; |
|---|
| 433 | 425 | return -ENOMEM; |
|---|
| 434 | 426 | } |
|---|
| .. | .. |
|---|
| 512 | 504 | default: |
|---|
| 513 | 505 | dev_warn(&pdev->dev, "Invalid chip_id 0x%02x, assuming 4 ch\n", |
|---|
| 514 | 506 | chip_id); |
|---|
| 515 | | - /* fall through */ |
|---|
| 507 | + fallthrough; |
|---|
| 516 | 508 | case 5: |
|---|
| 517 | 509 | solo_dev->nr_chans = 4; |
|---|
| 518 | 510 | solo_dev->nr_ext = 1; |
|---|