Re: [U-Boot] [PATCH v2 2/7] arm: omap: sata: compile out sata init apis when CONFIG_DISK is defined

2016-02-16 Thread Simon Glass
On 3 February 2016 at 04:59, Mugunthan V N  wrote:
> Compile out sata init/reset apis as this will be implemented in
> disk-uclass driver to initialize sata devices.
>
> Signed-off-by: Mugunthan V N 
> ---
>  arch/arm/cpu/armv7/omap-common/sata.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass 
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 2/7] arm: omap: sata: compile out sata init apis when CONFIG_DISK is defined

2016-02-03 Thread Mugunthan V N
Compile out sata init/reset apis as this will be implemented in
disk-uclass driver to initialize sata devices.

Signed-off-by: Mugunthan V N 
---
 arch/arm/cpu/armv7/omap-common/sata.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/cpu/armv7/omap-common/sata.c 
b/arch/arm/cpu/armv7/omap-common/sata.c
index 0c82689..df21ca4 100644
--- a/arch/arm/cpu/armv7/omap-common/sata.c
+++ b/arch/arm/cpu/armv7/omap-common/sata.c
@@ -32,6 +32,7 @@ struct omap_pipe3 sata_phy = {
.dpll_map = dpll_map_sata,
 };
 
+#ifndef CONFIG_DISK
 int init_sata(int dev)
 {
int ret;
@@ -68,3 +69,4 @@ void scsi_bus_reset(void)
ahci_reset((void __iomem *)DWC_AHSATA_BASE);
ahci_init((void __iomem *)DWC_AHSATA_BASE);
 }
+#endif
-- 
2.7.0.75.g3ee1e0f

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot