diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-10-30 19:56:32 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 11:29:53 +0100 |
commit | 28f4a6a4df76f0f1581d1fad86b4efbd6f2c9816 (patch) | |
tree | 86751dca3ab673ccb675e1572301b17ad9514807 /drivers/ata | |
parent | 2e18869590b665c232e995c4efe0d0bd1683f8c7 (diff) | |
download | barebox-28f4a6a4df76f0f1581d1fad86b4efbd6f2c9816.tar.gz barebox-28f4a6a4df76f0f1581d1fad86b4efbd6f2c9816.tar.xz |
drivers: add missing SPDX-License-Identifier
This adds the suitable SPDX-License-Identifier to all files in drivers/
that previously lacked one.
To aid manual inspection, following heuristics can be used:
* No changes outside of comments/whitespace:
git show -U0 HEAD | rg -v '^(@@|diff|index)|[-+]([-+]|//|#|[\s/]\*)'
* -or-later come in pairs:
git show --inter-hunk-context=19 HEAD | \
perl -0777 -F'/^@/gm' -ne 'for (@F) { @m = /later/g; print if @m & 1 }'
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211030175632.2276077-4-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/Kconfig | 1 | ||||
-rw-r--r-- | drivers/ata/Makefile | 1 | ||||
-rw-r--r-- | drivers/ata/ahci.c | 14 | ||||
-rw-r--r-- | drivers/ata/ahci.h | 12 | ||||
-rw-r--r-- | drivers/ata/disk_ata_drive.c | 11 | ||||
-rw-r--r-- | drivers/ata/ide-sff.c | 1 | ||||
-rw-r--r-- | drivers/ata/intf_platform_ide.c | 15 | ||||
-rw-r--r-- | drivers/ata/pata-imx.c | 14 | ||||
-rw-r--r-- | drivers/ata/sata-imx.c | 1 | ||||
-rw-r--r-- | drivers/ata/sata_mv.c | 1 |
10 files changed, 11 insertions, 60 deletions
diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index 50d3ba7f3a..2a74031e43 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 menuconfig DISK select BLOCK select PARTITION diff --git a/drivers/ata/Makefile b/drivers/ata/Makefile index d3f5a0b57e..2c5b9740dd 100644 --- a/drivers/ata/Makefile +++ b/drivers/ata/Makefile @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 # drive types obj-$(CONFIG_DISK_IDE_SFF) += ide-sff.o diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 6d251f248a..3c0b0a5450 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) Freescale Semiconductor, Inc. 2006. * Author: Jason Jin<Jason.jin@freescale.com> * Zhang Wei<wei.zhang@freescale.com> * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * with the reference on libata and ahci drvier in kernel - * + * with the reference on libata and ahci driver in kernel */ #include <common.h> diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h index ed318420c3..7fed43045a 100644 --- a/drivers/ata/ahci.h +++ b/drivers/ata/ahci.h @@ -1,18 +1,8 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Copyright (C) Freescale Semiconductor, Inc. 2006. * Author: Jason Jin<Jason.jin@freescale.com> * Zhang Wei<wei.zhang@freescale.com> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #ifndef _AHCI_H_ #define _AHCI_H_ diff --git a/drivers/ata/disk_ata_drive.c b/drivers/ata/disk_ata_drive.c index 3d9503fe7e..f36e06328c 100644 --- a/drivers/ata/disk_ata_drive.c +++ b/drivers/ata/disk_ata_drive.c @@ -1,18 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011 Juergen Beisert, Pengutronix * * Inspired from various soures like http://wiki.osdev.org/ATA_PIO_Mode, * u-boot and the linux kernel - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #include <common.h> diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c index a735c8c32c..dd8fab16aa 100644 --- a/drivers/ata/ide-sff.c +++ b/drivers/ata/ide-sff.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 #include <common.h> #include <ata_drive.h> #include <io.h> diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c index 15f5c0afaa..96ea3717b6 100644 --- a/drivers/ata/intf_platform_ide.c +++ b/drivers/ata/intf_platform_ide.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011 Juergen Beisert, Pengutronix * @@ -5,20 +6,6 @@ * Copyright (C) 2006 - 2007 Paul Mundt * Based on pata_pcmcia: * Copyright 2005-2006 Red Hat Inc, all rights reserved. - * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #include <common.h> diff --git a/drivers/ata/pata-imx.c b/drivers/ata/pata-imx.c index 4f75048c12..383f5f3bc1 100644 --- a/drivers/ata/pata-imx.c +++ b/drivers/ata/pata-imx.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (C) 2011 Juergen Beisert, Pengutronix * Copyright (C) 2012 Sascha Hauer, Pengutronix @@ -7,19 +8,6 @@ * Based on pata_pcmcia: * Copyright 2005-2006 Red Hat Inc, all rights reserved. * - * This file is subject to the terms and conditions of the GNU General Public - * License. See the file "COPYING" in the main directory of this archive - * for more details. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. */ #include <common.h> diff --git a/drivers/ata/sata-imx.c b/drivers/ata/sata-imx.c index 7b8036bbf3..f423a9f2ae 100644 --- a/drivers/ata/sata-imx.c +++ b/drivers/ata/sata-imx.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 #include <common.h> #include <ata_drive.h> #include <io.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 22b29d08a5..4f0ffd4f12 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 #include <common.h> #include <clock.h> #include <driver.h> |