| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Power Management and GPIO expander driver for MPC8349E-mITX-compatible MCU |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2008 MontaVista Software, Inc. |
|---|
| 5 | 6 | * |
|---|
| 6 | 7 | * Author: Anton Vorontsov <avorontsov@ru.mvista.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License as published by |
|---|
| 10 | | - * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | | - * (at your option) any later version. |
|---|
| 12 | 8 | */ |
|---|
| 13 | 9 | |
|---|
| 14 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 146 | 142 | return 0; |
|---|
| 147 | 143 | } |
|---|
| 148 | 144 | |
|---|
| 149 | | -static int mcu_probe(struct i2c_client *client, const struct i2c_device_id *id) |
|---|
| 145 | +static int mcu_probe(struct i2c_client *client) |
|---|
| 150 | 146 | { |
|---|
| 151 | 147 | struct mcu *mcu; |
|---|
| 152 | 148 | int ret; |
|---|
| .. | .. |
|---|
| 225 | 221 | .name = "mcu-mpc8349emitx", |
|---|
| 226 | 222 | .of_match_table = mcu_of_match_table, |
|---|
| 227 | 223 | }, |
|---|
| 228 | | - .probe = mcu_probe, |
|---|
| 224 | + .probe_new = mcu_probe, |
|---|
| 229 | 225 | .remove = mcu_remove, |
|---|
| 230 | 226 | .id_table = mcu_ids, |
|---|
| 231 | 227 | }; |
|---|