Skip to content

Commit bb47944

Browse files
Dong Aishenggregkh
authored andcommitted
nvmem: imx-ocotp: remove unused dead code
remove unused dead code Cc: Srinivas Kandagatla <[email protected]> Cc: Shawn Guo <[email protected]> Signed-off-by: Dong Aisheng <[email protected]> Acked-by: Shawn Guo <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a1078b4 commit bb47944

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/nvmem/imx-ocotp.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,6 @@ MODULE_DEVICE_TABLE(of, imx_ocotp_dt_ids);
439439

440440
static int imx_ocotp_probe(struct platform_device *pdev)
441441
{
442-
const struct of_device_id *of_id;
443442
struct device *dev = &pdev->dev;
444443
struct resource *res;
445444
struct ocotp_priv *priv;
@@ -460,7 +459,6 @@ static int imx_ocotp_probe(struct platform_device *pdev)
460459
if (IS_ERR(priv->clk))
461460
return PTR_ERR(priv->clk);
462461

463-
of_id = of_match_device(imx_ocotp_dt_ids, dev);
464462
priv->params = of_device_get_match_data(&pdev->dev);
465463
imx_ocotp_nvmem_config.size = 4 * priv->params->nregs;
466464
imx_ocotp_nvmem_config.dev = dev;

0 commit comments

Comments
 (0)