diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2018-02-23 12:40:16 +0300 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2018-02-26 04:52:15 +0300 |
commit | 45530e3943445f2787dc254cc12c58810b9e840f (patch) | |
tree | 1cf9a17801a91049fa992ade63b7a67584b9aa6a /arch/arm/include/asm/omap_mmc.h | |
parent | 76584e33988fc9f6c80199e04ca6e249baf7289a (diff) | |
download | u-boot-45530e3943445f2787dc254cc12c58810b9e840f.tar.xz |
mmc: omap_hsmmc: do not embed struct mmc in struct omap_hsmmc_plat
The area for struct mmc can be allocated dynamically. It greatly reduces
the size of struct omap_hsmmc_plat. This is useful in cases where the board
level code declares one or two struct omap_hsmmc_plat because it doesn't
use the Driver Model.
This saves around 740 bytes for the am335x_evm SPL.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Tested-by: Adam Ford <aford173@gmail.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/include/asm/omap_mmc.h')
-rw-r--r-- | arch/arm/include/asm/omap_mmc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/include/asm/omap_mmc.h b/arch/arm/include/asm/omap_mmc.h index 3d70148882..42ce8dcd6d 100644 --- a/arch/arm/include/asm/omap_mmc.h +++ b/arch/arm/include/asm/omap_mmc.h @@ -67,7 +67,7 @@ struct hsmmc { struct omap_hsmmc_plat { struct mmc_config cfg; struct hsmmc *base_addr; - struct mmc mmc; + struct mmc *mmc; bool cd_inverted; u32 controller_flags; const char *hw_rev; |