projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8918821
)
mtd: use dev_of_node helper in mtd_get_of_node
author
Rafał Miłecki
<rafal@milecki.pl>
Fri, 31 Mar 2017 09:11:48 +0000
(11:11 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Wed, 19 Apr 2017 18:38:52 +0000
(11:38 -0700)
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>
include/linux/mtd/mtd.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/mtd.h
b/include/linux/mtd/mtd.h
index eebdc63cf6af94a5ea9a5c4703c416f87e0079a8..f8db5b2e4028e49733b369c3fc940e0b7c2cb68a 100644
(file)
--- a/
include/linux/mtd/mtd.h
+++ b/
include/linux/mtd/mtd.h
@@
-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)