.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2008 Christian Lamparter <chunkeey@web.de> |
---|
3 | 4 | * Copyright 2008 Johannes Berg <johannes@sipsolutions.net> |
---|
4 | 5 | * |
---|
5 | 6 | * This driver is a port from stlc45xx: |
---|
6 | 7 | * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). |
---|
7 | | - * |
---|
8 | | - * This program is free software; you can redistribute it and/or |
---|
9 | | - * modify it under the terms of the GNU General Public License |
---|
10 | | - * version 2 as published by the Free Software Foundation. |
---|
11 | | - * |
---|
12 | | - * This program is distributed in the hope that it will be useful, but |
---|
13 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | | - * General Public License for more details. |
---|
16 | | - * |
---|
17 | | - * You should have received a copy of the GNU General Public License |
---|
18 | | - * along with this program; if not, write to the Free Software |
---|
19 | | - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA |
---|
20 | | - * 02110-1301 USA |
---|
21 | 8 | */ |
---|
22 | 9 | |
---|
23 | 10 | #include <linux/module.h> |
---|
.. | .. |
---|
177 | 164 | |
---|
178 | 165 | ret = p54_parse_firmware(dev, priv->firmware); |
---|
179 | 166 | if (ret) { |
---|
180 | | - release_firmware(priv->firmware); |
---|
| 167 | + /* the firmware is released by the caller */ |
---|
181 | 168 | return ret; |
---|
182 | 169 | } |
---|
183 | 170 | |
---|
.. | .. |
---|
672 | 659 | return 0; |
---|
673 | 660 | |
---|
674 | 661 | err_free_common: |
---|
| 662 | + release_firmware(priv->firmware); |
---|
675 | 663 | free_irq(gpio_to_irq(p54spi_gpio_irq), spi); |
---|
676 | 664 | err_free_gpio_irq: |
---|
677 | 665 | gpio_free(p54spi_gpio_irq); |
---|