OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d738871
)
ASoC: fsl_xcvr: Remove unused of_id variable
author
Fabio Estevam
<festevam@gmail.com>
Mon, 18 Jan 2021 12:38:12 +0000
(09:38 -0300)
committer
Mark Brown
<broonie@kernel.org>
Wed, 20 Jan 2021 18:47:32 +0000
(18:47 +0000)
The of_id variable is not used, so just remove it.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
Link:
https://lore.kernel.org/r/20210118123815.1630882-3-festevam@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_xcvr.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/fsl_xcvr.c
b/sound/soc/fsl/fsl_xcvr.c
index
3d58c88
..
dd228b4
100644
(file)
--- a/
sound/soc/fsl/fsl_xcvr.c
+++ b/
sound/soc/fsl/fsl_xcvr.c
@@
-1130,16
+1130,11
@@
MODULE_DEVICE_TABLE(of, fsl_xcvr_dt_ids);
static int fsl_xcvr_probe(struct platform_device *pdev)
{
struct device *dev = &pdev->dev;
- const struct of_device_id *of_id;
struct fsl_xcvr *xcvr;
struct resource *ram_res, *regs_res, *rx_res, *tx_res;
void __iomem *regs;
int ret, irq;
- of_id = of_match_device(fsl_xcvr_dt_ids, dev);
- if (!of_id)
- return -EINVAL;
-
xcvr = devm_kzalloc(dev, sizeof(*xcvr), GFP_KERNEL);
if (!xcvr)
return -ENOMEM;