summaryrefslogtreecommitdiffstats
path: root/drivers/soc/fsl
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-08-29 11:27:46 +0200
committerLi Yang <leoyang.li@nxp.com>2018-08-30 19:19:02 +0200
commitafa86d264a7ce62ba214bc7c6012e2129141421e (patch)
tree11af0645b4a1d30e5df8298eee52cedc79131d6e /drivers/soc/fsl
parentsoc: fsl/qe: Use of_get_child_by_name helper (diff)
downloadlinux-afa86d264a7ce62ba214bc7c6012e2129141421e.tar.xz
linux-afa86d264a7ce62ba214bc7c6012e2129141421e.zip
soc: fsl: dpio: remove redundant pointer 'priv'
Pointer 'priv' is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: variable 'priv' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/soc/fsl')
-rw-r--r--drivers/soc/fsl/dpio/dpio-driver.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/soc/fsl/dpio/dpio-driver.c b/drivers/soc/fsl/dpio/dpio-driver.c
index b60b77bfaffa..e58fcc9096e8 100644
--- a/drivers/soc/fsl/dpio/dpio-driver.c
+++ b/drivers/soc/fsl/dpio/dpio-driver.c
@@ -50,13 +50,10 @@ static void unregister_dpio_irq_handlers(struct fsl_mc_device *dpio_dev)
static int register_dpio_irq_handlers(struct fsl_mc_device *dpio_dev, int cpu)
{
- struct dpio_priv *priv;
int error;
struct fsl_mc_device_irq *irq;
cpumask_t mask;
- priv = dev_get_drvdata(&dpio_dev->dev);
-
irq = dpio_dev->irqs[0];
error = devm_request_irq(&dpio_dev->dev,
irq->msi_desc->irq,