| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ZX Specific Extensions for Synopsys DW Multimedia Card Interface driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016, Linaro Ltd. |
|---|
| 5 | 6 | * Copyright (C) 2016, ZTE Corp. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 8 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 9 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 10 | | - * (at your option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | |
|---|
| 13 | 9 | #include <linux/clk.h> |
|---|
| .. | .. |
|---|
| 159 | 155 | struct device_node *node; |
|---|
| 160 | 156 | struct dw_mci_zx_priv_data *priv; |
|---|
| 161 | 157 | struct regmap *sysc_base; |
|---|
| 162 | | - int ret; |
|---|
| 163 | 158 | |
|---|
| 164 | 159 | /* syscon is needed only by emmc */ |
|---|
| 165 | 160 | node = of_parse_phandle(np, "zte,aon-syscon", 0); |
|---|
| .. | .. |
|---|
| 167 | 162 | sysc_base = syscon_node_to_regmap(node); |
|---|
| 168 | 163 | of_node_put(node); |
|---|
| 169 | 164 | |
|---|
| 170 | | - if (IS_ERR(sysc_base)) { |
|---|
| 171 | | - ret = PTR_ERR(sysc_base); |
|---|
| 172 | | - if (ret != -EPROBE_DEFER) |
|---|
| 173 | | - dev_err(host->dev, "Can't get syscon: %d\n", |
|---|
| 174 | | - ret); |
|---|
| 175 | | - return ret; |
|---|
| 176 | | - } |
|---|
| 165 | + if (IS_ERR(sysc_base)) |
|---|
| 166 | + return dev_err_probe(host->dev, PTR_ERR(sysc_base), |
|---|
| 167 | + "Can't get syscon\n"); |
|---|
| 177 | 168 | } else { |
|---|
| 178 | 169 | return 0; |
|---|
| 179 | 170 | } |
|---|
| .. | .. |
|---|
| 231 | 222 | .remove = dw_mci_pltfm_remove, |
|---|
| 232 | 223 | .driver = { |
|---|
| 233 | 224 | .name = "dwmmc_zx", |
|---|
| 225 | + .probe_type = PROBE_PREFER_ASYNCHRONOUS, |
|---|
| 234 | 226 | .of_match_table = dw_mci_zx_match, |
|---|
| 235 | 227 | .pm = &dw_mci_zx_dev_pm_ops, |
|---|
| 236 | 228 | }, |
|---|