aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/xilinx_sdfec.c
diff options
context:
space:
mode:
authorBo Svangård <bo.svangard@sylog.se>2023-04-22 21:59:33 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-31 18:59:56 +0100
commitf5070bf0e7e70e1ed3aaf422f8ae54ce70aa1bbe (patch)
tree5feb7095d2aa7bcb6cf34d1a560206b1100d7683 /drivers/misc/xilinx_sdfec.c
parent0f2c1f801a67ec2dc01efc10f2ea78ce06c35602 (diff)
downloadlinux-f5070bf0e7e70e1ed3aaf422f8ae54ce70aa1bbe.tar.gz
misc/xilinx_sdfec: remove redundant _{open, release} function
The functions are redundant as they are empty and performed by the misc driver. Signed-off-by: Bo Svangård <bo.svangard@sylog.se> Acked-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/20230422195933.523874-1-bo.svangard@sylog.se Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/xilinx_sdfec.c')
-rw-r--r--drivers/misc/xilinx_sdfec.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/misc/xilinx_sdfec.c b/drivers/misc/xilinx_sdfec.c
index cb9506f9cbd07..270ff4c5971a1 100644
--- a/drivers/misc/xilinx_sdfec.c
+++ b/drivers/misc/xilinx_sdfec.c
@@ -855,16 +855,6 @@ static int xsdfec_cfg_axi_streams(struct xsdfec_dev *xsdfec)
return 0;
}
-static int xsdfec_dev_open(struct inode *iptr, struct file *fptr)
-{
- return 0;
-}
-
-static int xsdfec_dev_release(struct inode *iptr, struct file *fptr)
-{
- return 0;
-}
-
static int xsdfec_start(struct xsdfec_dev *xsdfec)
{
u32 regread;
@@ -1030,8 +1020,6 @@ static __poll_t xsdfec_poll(struct file *file, poll_table *wait)
static const struct file_operations xsdfec_fops = {
.owner = THIS_MODULE,
- .open = xsdfec_dev_open,
- .release = xsdfec_dev_release,
.unlocked_ioctl = xsdfec_dev_ioctl,
.poll = xsdfec_poll,
.compat_ioctl = compat_ptr_ioctl,