|
@@ -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)
|