.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2013 Linaro Ltd. |
---|
3 | 4 | * Copyright (c) 2013 Hisilicon Limited. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or |
---|
8 | | - * (at your option) any later version. |
---|
9 | 5 | */ |
---|
10 | 6 | |
---|
11 | 7 | #include <linux/bitops.h> |
---|
.. | .. |
---|
242 | 238 | if (smpl_phase >= USE_DLY_MIN_SMPL && |
---|
243 | 239 | smpl_phase <= USE_DLY_MAX_SMPL) |
---|
244 | 240 | use_smpl_dly = 1; |
---|
245 | | - /* fallthrough */ |
---|
| 241 | + fallthrough; |
---|
246 | 242 | case MMC_TIMING_UHS_SDR50: |
---|
247 | 243 | if (smpl_phase >= ENABLE_SHIFT_MIN_SMPL && |
---|
248 | 244 | smpl_phase <= ENABLE_SHIFT_MAX_SMPL) |
---|
.. | .. |
---|
428 | 424 | |
---|
429 | 425 | if (!IS_ERR(mmc->supply.vqmmc)) { |
---|
430 | 426 | ret = mmc_regulator_set_vqmmc(mmc, ios); |
---|
431 | | - if (ret) { |
---|
| 427 | + if (ret < 0) { |
---|
432 | 428 | dev_err(host->dev, "Regulator set error %d\n", ret); |
---|
433 | 429 | return ret; |
---|
434 | 430 | } |
---|