diff --git a/arch/arm/imx-common/Makefile b/arch/arm/imx-common/Makefile index 68f0f5276ae9b87234315ed002d909597271441f..ee5c872f51e6d49e3e878c4e8d93c9ac59bb805a 100644 --- a/arch/arm/imx-common/Makefile +++ b/arch/arm/imx-common/Makefile @@ -18,7 +18,7 @@ ifeq ($(SOC),$(filter $(SOC),mx6 mxs)) obj-y += misc.o endif ifeq ($(SOC),$(filter $(SOC),mx6)) -objs-$(CONFIG_CMD_SATA) += sata.o +obj-$(CONFIG_CMD_SATA) += sata.o endif obj-$(CONFIG_CMD_BMODE) += cmd_bmode.o obj-$(CONFIG_CMD_HDMIDETECT) += cmd_hdmidet.o diff --git a/arch/arm/imx-common/sata.c b/arch/arm/imx-common/sata.c index 1b4c5029afbaf2947692476cae7f3042582b6d0e..2e694866e051948beb2302080bfee5cbd6ced8c7 100644 --- a/arch/arm/imx-common/sata.c +++ b/arch/arm/imx-common/sata.c @@ -7,6 +7,7 @@ #include #include #include +#include int setup_sata(void) {