diff options
-rw-r--r-- | drivers/mtd/nand/fsl_upm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/nand/fsl_upm.c b/drivers/mtd/nand/fsl_upm.c index d721ec055cbf..b4e2ba47d7b5 100644 --- a/drivers/mtd/nand/fsl_upm.c +++ b/drivers/mtd/nand/fsl_upm.c | |||
@@ -48,7 +48,10 @@ struct fsl_upm_nand { | |||
48 | uint32_t wait_flags; | 48 | uint32_t wait_flags; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | #define to_fsl_upm_nand(mtd) container_of(mtd, struct fsl_upm_nand, mtd) | 51 | static inline struct fsl_upm_nand *to_fsl_upm_nand(struct mtd_info *mtdinfo) |
52 | { | ||
53 | return container_of(mtdinfo, struct fsl_upm_nand, mtd); | ||
54 | } | ||
52 | 55 | ||
53 | static int fun_chip_ready(struct mtd_info *mtd) | 56 | static int fun_chip_ready(struct mtd_info *mtd) |
54 | { | 57 | { |