mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-29 18:11:20 +00:00
mtd: use dev_of_node helper in mtd_get_of_node
This allows better compile-time optimizations with CONFIG_OF disabled. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
8918821f37
commit
4a67c9fde0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
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)
|
static inline int mtd_oobavail(struct mtd_info *mtd, struct mtd_oob_ops *ops)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue