From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Thu, 10 Mar 2016 16:57:50 +0800 Subject: [U-Boot] [PATCH 1/2] fsl: esdhc: consolidate fsl_esdhc_cfg structure Message-ID: <1457600271-19208-1-git-send-email-van.freenix@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We can use phys_addr_to for esdhc_base to discard the #ifdef. Signed-off-by: Peng Fan Cc: York Sun Cc: Yangbo Lu Cc: Hector Palacios Cc: Eric Nelson Cc: Stefano Babic Cc: Fabio Estevam Cc: Pantelis Antoniou Cc: Simon Glass --- include/fsl_esdhc.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/fsl_esdhc.h b/include/fsl_esdhc.h index 073048f..fa760a5 100644 --- a/include/fsl_esdhc.h +++ b/include/fsl_esdhc.h @@ -168,11 +168,7 @@ #define ESDHC_VENDORSPEC_VSELECT 0x00000002 /* Use 1.8V */ struct fsl_esdhc_cfg { -#ifdef CONFIG_FSL_LAYERSCAPE - u64 esdhc_base; -#else - u32 esdhc_base; -#endif + phys_addr_t esdhc_base; u32 sdhc_clk; u8 max_bus_width; struct mmc_config cfg; -- 2.6.2