Skip to content
Commit 1f0c4ea9 authored by Yu Kuai's avatar Yu Kuai Committed by Miquel Raynal
Browse files

mtd: rawnand: ingenic: remove redundant get_device() in ingenic_ecc_get()



of_find_device_by_node() already takes a reference to the device, and
ingenic_ecc_release() will drop the reference. So, the get_device() in
ingenic_ecc_get() is redundand.

Fixes: 15de8c6e("mtd: rawnand: ingenic: Separate top-level and SoC specific code")
Signed-off-by: default avatarYu Kuai <yukuai3@huawei.com>
Acked-by: default avatarPaul Cercueil <paul@crapouillou.net>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20201031105439.2304211-1-yukuai3@huawei.com
parent 1771af5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment