Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4a67c9fd authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Brian Norris
Browse files

mtd: use dev_of_node helper in mtd_get_of_node



This allows better compile-time optimizations with CONFIG_OF disabled.

Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Acked-by: default avatarBoris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 8918821f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -393,7 +393,7 @@ static inline void mtd_set_of_node(struct mtd_info *mtd,

static inline struct device_node *mtd_get_of_node(struct mtd_info *mtd)
{
	return mtd->dev.of_node;
	return dev_of_node(&mtd->dev);
}

static inline int mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops)