[U-Boot] [PATCH v2 3/4] EXYNOS: mmc: support DesignWare Controller for Samsung-SoC

Andy Fleming afleming at gmail.com
Thu Aug 30 23:35:30 CEST 2012


On Tue, Jul 3, 2012 at 12:58 AM, Jaehoon Chung <jh80.chung at samsung.com> wrote:
> Support DesignWare MMC Controller for Samsung Specific.
>
> Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
> Signed-off-by: Rajeshawari Shinde <rajeshwari.s at samsung.com>
> ---
>  arch/arm/include/asm/arch-exynos/dwmmc.h |   36 ++++++++++++++++++
>  drivers/mmc/exynos_dw_mmc.c              |   58 ++++++++++++++++++++++++++++++


> +int exynos_dwmci_init(u32 regbase, int bus_width, int index)
> +{
> +       struct dwmci_host *host = NULL;
> +       host = (struct dwmci_host *)malloc(sizeof(struct dwmci_host));


It is not necessary (or desirable) to cast the result of malloc.

Andy


More information about the U-Boot mailing list