.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * PISMO memory driver - http://www.pismoworld.org/ |
---|
3 | 4 | * |
---|
4 | 5 | * For ARM Realview and Versatile platforms |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify |
---|
7 | | - * it under the terms of the GNU General Public License as published by |
---|
8 | | - * the Free Software Foundation; either version 2 of the License. |
---|
9 | 6 | */ |
---|
10 | 7 | #include <linux/init.h> |
---|
11 | 8 | #include <linux/module.h> |
---|
.. | .. |
---|
214 | 211 | static int pismo_probe(struct i2c_client *client, |
---|
215 | 212 | const struct i2c_device_id *id) |
---|
216 | 213 | { |
---|
217 | | - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
---|
218 | 214 | struct pismo_pdata *pdata = client->dev.platform_data; |
---|
219 | 215 | struct pismo_eeprom eeprom; |
---|
220 | 216 | struct pismo_data *pismo; |
---|
221 | 217 | int ret, i; |
---|
222 | 218 | |
---|
223 | | - if (!i2c_check_functionality(adapter, I2C_FUNC_I2C)) { |
---|
| 219 | + if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { |
---|
224 | 220 | dev_err(&client->dev, "functionality mismatch\n"); |
---|
225 | 221 | return -EIO; |
---|
226 | 222 | } |
---|