forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/i2c/sr030pc30.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Driver for SiliconFile SR030PC30 VGA (1/10-Inch) Image Sensor with ISP
34 *
....@@ -9,11 +10,6 @@
910 *
1011 * Based on mt9v011 Micron Digital Image Sensor driver
1112 * Copyright (c) 2009 Mauro Carvalho Chehab
12
- *
13
- * This program is free software; you can redistribute it and/or modify
14
- * it under the terms of the GNU General Public License as published by
15
- * the Free Software Foundation; either version 2 of the License, or
16
- * (at your option) any later version.
1713 */
1814
1915 #include <linux/i2c.h>
....@@ -569,7 +565,7 @@
569565 if (!ret)
570566 ret = sr030pc30_pwr_ctrl(sd, false, false);
571567
572
- if (!ret && !info->pdata)
568
+ if (ret)
573569 return ret;
574570
575571 expmin = EXPOS_MIN_MS * info->pdata->clk_rate / (8 * 1000);
....@@ -703,7 +699,6 @@
703699 return -ENOMEM;
704700
705701 sd = &info->sd;
706
- strcpy(sd->name, MODULE_NAME);
707702 info->pdata = client->dev.platform_data;
708703
709704 v4l2_i2c_subdev_init(sd, client, &sr030pc30_ops);