forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/media/platform/omap3isp/ispstat.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ispstat.c
34 *
....@@ -9,10 +10,6 @@
910 * Contacts: David Cohen <dacohen@gmail.com>
1011 * Laurent Pinchart <laurent.pinchart@ideasonboard.com>
1112 * Sakari Ailus <sakari.ailus@iki.fi>
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 version 2 as
15
- * published by the Free Software Foundation.
1613 */
1714
1815 #include <linux/dma-mapping.h>
....@@ -1042,7 +1039,7 @@
10421039
10431040 v4l2_subdev_init(subdev, sd_ops);
10441041 snprintf(subdev->name, V4L2_SUBDEV_NAME_SIZE, "OMAP3 ISP %s", name);
1045
- subdev->grp_id = 1 << 16; /* group ID for isp subdevs */
1042
+ subdev->grp_id = BIT(16); /* group ID for isp subdevs */
10461043 subdev->flags |= V4L2_SUBDEV_FL_HAS_EVENTS | V4L2_SUBDEV_FL_HAS_DEVNODE;
10471044 v4l2_set_subdevdata(subdev, stat);
10481045
....@@ -1080,4 +1077,6 @@
10801077 mutex_destroy(&stat->ioctl_lock);
10811078 isp_stat_bufs_free(stat);
10821079 kfree(stat->buf);
1080
+ kfree(stat->priv);
1081
+ kfree(stat->recover_priv);
10831082 }