.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /** |
---|
2 | 3 | * Copyright (C) 2016 Linaro Ltd |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | #include <linux/module.h> |
---|
9 | 6 | #include <linux/ulpi/driver.h> |
---|
.. | .. |
---|
57 | 54 | |
---|
58 | 55 | /* Configure pins for HSIC functionality */ |
---|
59 | 56 | pins_default = pinctrl_lookup_state(uphy->pctl, PINCTRL_STATE_DEFAULT); |
---|
60 | | - if (IS_ERR(pins_default)) |
---|
61 | | - return PTR_ERR(pins_default); |
---|
| 57 | + if (IS_ERR(pins_default)) { |
---|
| 58 | + ret = PTR_ERR(pins_default); |
---|
| 59 | + goto err_ulpi; |
---|
| 60 | + } |
---|
62 | 61 | |
---|
63 | 62 | ret = pinctrl_select_state(uphy->pctl, pins_default); |
---|
64 | 63 | if (ret) |
---|