- make to_tx6_esdhc_cfg() a static inline function rather than macro
- make struct node_info static
static inline struct tx6_esdhc_cfg *to_tx6_esdhc_cfg(struct fsl_esdhc_cfg *cfg)
{
static inline struct tx6_esdhc_cfg *to_tx6_esdhc_cfg(struct fsl_esdhc_cfg *cfg)
{
- void *p = cfg;
-
- return p - offsetof(struct tx6_esdhc_cfg, cfg);
+ return container_of(cfg, struct tx6_esdhc_cfg, cfg);
}
int board_mmc_getcd(struct mmc *mmc)
}
int board_mmc_getcd(struct mmc *mmc)
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
#include <jffs2/jffs2.h>
#include <mtd_node.h>
#ifdef CONFIG_FDT_FIXUP_PARTITIONS
#include <jffs2/jffs2.h>
#include <mtd_node.h>
-struct node_info nodes[] = {
+static struct node_info nodes[] = {
{ "fsl,imx6q-gpmi-nand", MTD_DEV_TYPE_NAND, },
};
{ "fsl,imx6q-gpmi-nand", MTD_DEV_TYPE_NAND, },
};