]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
karo: tx53: remove useless #if
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:34:19 +0000 (15:34 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 21 Oct 2013 13:34:19 +0000 (15:34 +0200)
board/karo/tx53/tx53.c

index 2d0fbb6c03e7317541d226eafaba477369b30d0a..1a66b5ab7c7b5d51d575e66c65c498a67760fb56 100644 (file)
@@ -313,16 +313,7 @@ static struct tx53_esdhc_cfg {
        },
 };
 
-#if 1
 #define to_tx53_esdhc_cfg(p) container_of(p, struct tx53_esdhc_cfg, cfg)
-#else
-static struct tx53_esdhc_cfg *to_tx53_esdhc_cfg(struct fsl_esdhc_cfg *cfg)
-{
-       void *p = cfg;
-
-       return p - offsetof(struct tx53_esdhc_cfg, cfg);
-}
-#endif
 
 int board_mmc_getcd(struct mmc *mmc)
 {