hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/media/i2c/mt9p031.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Driver for MT9P031 CMOS Image Sensor from Aptina
34 *
....@@ -6,10 +7,6 @@
67 * Copyright (C) 2011, Guennadi Liakhovetski <g.liakhovetski@gmx.de>
78 *
89 * 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.
1310 */
1411
1512 #include <linux/clk.h>
....@@ -1060,7 +1057,7 @@
10601057 const struct i2c_device_id *did)
10611058 {
10621059 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;
10641061 struct mt9p031 *mt9p031;
10651062 unsigned int i;
10661063 int ret;