diff options
| author | Tom Rini <[email protected]> | 2024-05-01 19:30:28 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-05-07 08:00:41 -0600 |
| commit | 05033cd52bb2f43600ec56bebcc79a8aa27d1113 (patch) | |
| tree | b252c5ee1200d4fca0c4fe259c1f3af26508d5bc | |
| parent | 7921be7243e889ce5270fdcd019e206b0dce91d4 (diff) | |
ata: Remove <common.h> and add needed includes
Remove <common.h> from this driver directory and when needed
add missing include files directly.
Reviewed-by: Tony Dinh <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
| -rw-r--r-- | drivers/ata/ahci-pci.c | 1 | ||||
| -rw-r--r-- | drivers/ata/ahci-uclass.c | 1 | ||||
| -rw-r--r-- | drivers/ata/ahci.c | 2 | ||||
| -rw-r--r-- | drivers/ata/ahci_mvebu.c | 1 | ||||
| -rw-r--r-- | drivers/ata/ahci_sunxi.c | 1 | ||||
| -rw-r--r-- | drivers/ata/dwc_ahci.c | 1 | ||||
| -rw-r--r-- | drivers/ata/dwc_ahsata.c | 1 | ||||
| -rw-r--r-- | drivers/ata/fsl_sata.c | 1 | ||||
| -rw-r--r-- | drivers/ata/libata.c | 2 | ||||
| -rw-r--r-- | drivers/ata/mtk_ahci.c | 1 | ||||
| -rw-r--r-- | drivers/ata/sata.c | 1 | ||||
| -rw-r--r-- | drivers/ata/sata_bootdev.c | 1 | ||||
| -rw-r--r-- | drivers/ata/sata_ceva.c | 1 | ||||
| -rw-r--r-- | drivers/ata/sata_mv.c | 2 | ||||
| -rw-r--r-- | drivers/ata/sata_sil.c | 1 |
15 files changed, 3 insertions, 15 deletions
diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index 5356b9d83d3..f2102aaa635 100644 --- a/drivers/ata/ahci-pci.c +++ b/drivers/ata/ahci-pci.c @@ -3,7 +3,6 @@ * Copyright (C) 2017, Bin Meng <[email protected]> */ -#include <common.h> #include <ahci.h> #include <scsi.h> #include <dm.h> diff --git a/drivers/ata/ahci-uclass.c b/drivers/ata/ahci-uclass.c index d398b50b9a1..7affb3f1ec7 100644 --- a/drivers/ata/ahci-uclass.c +++ b/drivers/ata/ahci-uclass.c @@ -6,7 +6,6 @@ #define LOG_CATEGORY UCLASS_AHCI -#include <common.h> #include <ahci.h> #include <dm.h> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 04ddc339464..ac869296d52 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -8,10 +8,10 @@ * * This driver provides a SCSI interface to SATA. */ -#include <common.h> #include <blk.h> #include <cpu_func.h> #include <log.h> +#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index f05150d61dd..f6e2d6bee45 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -3,7 +3,6 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ -#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index 9064774e661..6cf5cee055e 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -1,4 +1,3 @@ -#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index 15fd3e365b2..b480cde4465 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -8,7 +8,6 @@ * Author: Mugunthan V N <[email protected]> */ -#include <common.h> #include <dm.h> #include <ahci.h> #include <scsi.h> diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index b4d4e39c9b3..a29d641343e 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -4,7 +4,6 @@ * Terry Lv <[email protected]> */ -#include <common.h> #include <ahci.h> #include <blk.h> #include <cpu_func.h> diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c index 969bc191f8e..4990148388b 100644 --- a/drivers/ata/fsl_sata.c +++ b/drivers/ata/fsl_sata.c @@ -5,7 +5,6 @@ * Author: Dave Liu <[email protected]> */ -#include <common.h> #include <ahci.h> #include <blk.h> #include <command.h> diff --git a/drivers/ata/libata.c b/drivers/ata/libata.c index 47e2c5c1cc4..ef659cb1728 100644 --- a/drivers/ata/libata.c +++ b/drivers/ata/libata.c @@ -5,9 +5,9 @@ * port from the libata of linux kernel */ -#include <common.h> #include <compiler.h> #include <libata.h> +#include <stdio.h> u64 ata_id_n_sectors(u16 *id) { diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c index 2c5227df306..53aabee0a5e 100644 --- a/drivers/ata/mtk_ahci.c +++ b/drivers/ata/mtk_ahci.c @@ -8,7 +8,6 @@ * Author: Frank Wunderlich <[email protected]> */ -#include <common.h> #include <ahci.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c index 784d9bbeacb..84437d3d346 100644 --- a/drivers/ata/sata.c +++ b/drivers/ata/sata.c @@ -9,7 +9,6 @@ * Dave Liu <[email protected]> */ -#include <common.h> #include <ahci.h> #include <blk.h> #include <dm.h> diff --git a/drivers/ata/sata_bootdev.c b/drivers/ata/sata_bootdev.c index f638493ce04..a5ca6f6fd5b 100644 --- a/drivers/ata/sata_bootdev.c +++ b/drivers/ata/sata_bootdev.c @@ -5,7 +5,6 @@ * Copyright 2023 Tony Dinh <[email protected]> */ -#include <common.h> #include <ahci.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c index 7769d4f99ef..a81b3165992 100644 --- a/drivers/ata/sata_ceva.c +++ b/drivers/ata/sata_ceva.c @@ -3,7 +3,6 @@ * (C) Copyright 2015 - 2016 Xilinx, Inc. * Michal Simek <[email protected]> */ -#include <common.h> #include <dm.h> #include <ahci.h> #include <generic-phy.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 94d7369351a..ac78760a33e 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -31,7 +31,6 @@ * No port multiplier support */ -#include <common.h> #include <ahci.h> #include <blk.h> #include <bootdev.h> @@ -46,6 +45,7 @@ #include <libata.h> #include <malloc.h> #include <sata.h> +#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 43a91a79120..5b80f6249d7 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c @@ -5,7 +5,6 @@ * Author: Tang Yuantian <[email protected]> */ -#include <common.h> #include <blk.h> #include <cpu_func.h> #include <dm.h> |
