.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Driver for MT9P031 CMOS Image Sensor from Aptina |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * Copyright (C) 2011, Guennadi Liakhovetski <g.liakhovetski@gmx.de> |
---|
7 | 8 | * |
---|
8 | 9 | * Based on the MT9V032 driver and Bastian Hecht's code. |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify |
---|
11 | | - * it under the terms of the GNU General Public License version 2 as |
---|
12 | | - * published by the Free Software Foundation. |
---|
13 | 10 | */ |
---|
14 | 11 | |
---|
15 | 12 | #include <linux/clk.h> |
---|
.. | .. |
---|
1060 | 1057 | const struct i2c_device_id *did) |
---|
1061 | 1058 | { |
---|
1062 | 1059 | struct mt9p031_platform_data *pdata = mt9p031_get_pdata(client); |
---|
1063 | | - struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent); |
---|
| 1060 | + struct i2c_adapter *adapter = client->adapter; |
---|
1064 | 1061 | struct mt9p031 *mt9p031; |
---|
1065 | 1062 | unsigned int i; |
---|
1066 | 1063 | int ret; |
---|