| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * I2C multiplexer using a single register |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2015 Freescale Semiconductor |
|---|
| 5 | 6 | * York Sun <yorksun@freescale.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 8 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 9 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 10 | | - * option) any later version. |
|---|
| 11 | 7 | */ |
|---|
| 12 | 8 | |
|---|
| 13 | 9 | #include <linux/i2c.h> |
|---|
| .. | .. |
|---|
| 175 | 171 | sizeof(mux->data)); |
|---|
| 176 | 172 | } else { |
|---|
| 177 | 173 | ret = i2c_mux_reg_probe_dt(mux, pdev); |
|---|
| 178 | | - if (ret == -EPROBE_DEFER) |
|---|
| 179 | | - return ret; |
|---|
| 180 | | - |
|---|
| 181 | | - if (ret < 0) { |
|---|
| 182 | | - dev_err(&pdev->dev, "Error parsing device tree"); |
|---|
| 183 | | - return ret; |
|---|
| 184 | | - } |
|---|
| 174 | + if (ret < 0) |
|---|
| 175 | + return dev_err_probe(&pdev->dev, ret, |
|---|
| 176 | + "Error parsing device tree"); |
|---|
| 185 | 177 | } |
|---|
| 186 | 178 | |
|---|
| 187 | 179 | parent = i2c_get_adapter(mux->data.parent); |
|---|