| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ispstat.c |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 9 | 10 | * Contacts: David Cohen <dacohen@gmail.com> |
|---|
| 10 | 11 | * Laurent Pinchart <laurent.pinchart@ideasonboard.com> |
|---|
| 11 | 12 | * 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. |
|---|
| 16 | 13 | */ |
|---|
| 17 | 14 | |
|---|
| 18 | 15 | #include <linux/dma-mapping.h> |
|---|
| .. | .. |
|---|
| 1042 | 1039 | |
|---|
| 1043 | 1040 | v4l2_subdev_init(subdev, sd_ops); |
|---|
| 1044 | 1041 | 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 */ |
|---|
| 1046 | 1043 | subdev->flags |= V4L2_SUBDEV_FL_HAS_EVENTS | V4L2_SUBDEV_FL_HAS_DEVNODE; |
|---|
| 1047 | 1044 | v4l2_set_subdevdata(subdev, stat); |
|---|
| 1048 | 1045 | |
|---|
| .. | .. |
|---|
| 1080 | 1077 | mutex_destroy(&stat->ioctl_lock); |
|---|
| 1081 | 1078 | isp_stat_bufs_free(stat); |
|---|
| 1082 | 1079 | kfree(stat->buf); |
|---|
| 1080 | + kfree(stat->priv); |
|---|
| 1081 | + kfree(stat->recover_priv); |
|---|
| 1083 | 1082 | } |
|---|