Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: Use SPDX license tag for DT files

Convert remaining DT files to use SPDX-License-Identifier tags.

Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Rob Herring <robh@kernel.org>

+25 -100
+1
drivers/of/Kconfig
··· 1 + # SPDX-License-Identifier: GPL-2.0 1 2 config DTC 2 3 bool 3 4
+1 -1
drivers/of/address.c
··· 1 - 1 + // SPDX-License-Identifier: GPL-2.0 2 2 #define pr_fmt(fmt) "OF: " fmt 3 3 4 4 #include <linux/device.h>
+1 -5
drivers/of/base.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Procedures for creating, accessing and interpreting the device tree. 3 4 * ··· 12 11 * 13 12 * Reconsolidated from arch/x/kernel/prom.c by Stephen Rothwell and 14 13 * Grant Likely. 15 - * 16 - * This program is free software; you can redistribute it and/or 17 - * modify it under the terms of the GNU General Public License 18 - * as published by the Free Software Foundation; either version 19 - * 2 of the License, or (at your option) any later version. 20 14 */ 21 15 22 16 #define pr_fmt(fmt) "OF: " fmt
+1
drivers/of/device.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/string.h> 2 3 #include <linux/kernel.h> 3 4 #include <linux/of.h>
+1
drivers/of/dynamic.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Support for dynamic device trees. 3 4 *
+1 -4
drivers/of/fdt.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Functions for working with the Flattened Device Tree data format 3 4 * 4 5 * Copyright 2009 Benjamin Herrenschmidt, IBM Corp 5 6 * benh@kernel.crashing.org 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * version 2 as published by the Free Software Foundation. 10 7 */ 11 8 12 9 #define pr_fmt(fmt) "OF: fdt: " fmt
+1 -5
drivers/of/fdt_address.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * FDT Address translation based on u-boot fdt_support.c which in turn was 3 4 * based on the kernel unflattened DT address translation code. ··· 7 6 * Gerald Van Baren, Custom IDEAS, vanbaren@cideas.com 8 7 * 9 8 * Copyright 2010-2011 Freescale Semiconductor, Inc. 10 - * 11 - * This program is free software; you can redistribute it and/or modify 12 - * it under the terms of the GNU General Public License as published by 13 - * the Free Software Foundation; either version 2, or (at your option) 14 - * any later version. 15 9 */ 16 10 17 11 #define pr_fmt(fmt) "OF: fdt: " fmt
+1 -5
drivers/of/irq.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Derived from arch/i386/kernel/irq.c 3 4 * Copyright (C) 1992 Linus Torvalds ··· 8 7 * Copyright (C) 1996-2001 Cort Dougan 9 8 * Adapted for Power Macintosh by Paul Mackerras 10 9 * Copyright (C) 1996 Paul Mackerras (paulus@cs.anu.edu.au) 11 - * 12 - * This program is free software; you can redistribute it and/or 13 - * modify it under the terms of the GNU General Public License 14 - * as published by the Free Software Foundation; either version 15 - * 2 of the License, or (at your option) any later version. 16 10 * 17 11 * This file contains the code used to make IRQ descriptions in the 18 12 * device tree to actual irq numbers on an interrupt controller
+1 -1
drivers/of/kobj.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/of.h> 2 3 #include <linux/slab.h> 3 4 ··· 162 161 /* finally remove the kobj_init ref */ 163 162 of_node_put(np); 164 163 } 165 -
+1 -12
drivers/of/of_numa.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * OF NUMA Parsing support. 3 4 * 4 5 * Copyright (C) 2015 - 2016 Cavium Inc. 5 - * 6 - * This program is free software; you can redistribute it and/or modify 7 - * it under the terms of the GNU General Public License version 2 as 8 - * published by the Free Software Foundation. 9 - * 10 - * This program is distributed in the hope that it will be useful, 11 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 - * GNU General Public License for more details. 14 - * 15 - * You should have received a copy of the GNU General Public License 16 - * along with this program. If not, see <http://www.gnu.org/licenses/>. 17 6 */ 18 7 19 8 #define pr_fmt(fmt) "OF: NUMA: " fmt
+1 -5
drivers/of/of_private.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 1 2 #ifndef _LINUX_OF_PRIVATE_H 2 3 #define _LINUX_OF_PRIVATE_H 3 4 /* ··· 6 5 * 7 6 * Paul Mackerras August 1996. 8 7 * Copyright (C) 1996-2005 Paul Mackerras. 9 - * 10 - * This program is free software; you can redistribute it and/or 11 - * modify it under the terms of the GNU General Public License 12 - * as published by the Free Software Foundation; either version 13 - * 2 of the License, or (at your option) any later version. 14 8 */ 15 9 16 10 /**
+1 -5
drivers/of/of_reserved_mem.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Device tree based initialization code for reserved memory. 3 4 * ··· 7 6 * http://www.samsung.com 8 7 * Author: Marek Szyprowski <m.szyprowski@samsung.com> 9 8 * Author: Josh Cartwright <joshc@codeaurora.org> 10 - * 11 - * This program is free software; you can redistribute it and/or 12 - * modify it under the terms of the GNU General Public License as 13 - * published by the Free Software Foundation; either version 2 of the 14 - * License or (at your optional) any later version of the license. 15 9 */ 16 10 17 11 #define pr_fmt(fmt) "OF: reserved mem: " fmt
+1 -4
drivers/of/overlay.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Functions for working with device tree overlays 3 4 * 4 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 5 6 * Copyright (C) 2012 Texas Instruments Inc. 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * version 2 as published by the Free Software Foundation. 10 7 */ 11 8 12 9 #define pr_fmt(fmt) "OF: overlay: " fmt
+1 -5
drivers/of/pdt.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* pdt.c: OF PROM device tree support code. 2 3 * 3 4 * Paul Mackerras August 1996. ··· 9 8 * 10 9 * Adapted for sparc by David S. Miller davem@davemloft.net 11 10 * Adapted for multiple architectures by Andres Salomon <dilinger@queued.net> 12 - * 13 - * This program is free software; you can redistribute it and/or 14 - * modify it under the terms of the GNU General Public License 15 - * as published by the Free Software Foundation; either version 16 - * 2 of the License, or (at your option) any later version. 17 11 */ 18 12 19 13 #include <linux/kernel.h>
+1 -6
drivers/of/platform.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp. 3 4 * <benh@kernel.crashing.org> 4 5 * and Arnd Bergmann, IBM Corp. 5 6 * Merged from powerpc/kernel/of_platform.c and 6 7 * sparc{,64}/kernel/of_device.c by Stephen Rothwell 7 - * 8 - * This program is free software; you can redistribute it and/or 9 - * modify it under the terms of the GNU General Public License 10 - * as published by the Free Software Foundation; either version 11 - * 2 of the License, or (at your option) any later version. 12 - * 13 8 */ 14 9 15 10 #define pr_fmt(fmt) "OF: " fmt
+1 -5
drivers/of/property.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * drivers/of/property.c - Procedures for accessing and interpreting 3 4 * Devicetree properties and graphs. ··· 17 16 * 18 17 * Reconsolidated from arch/x/kernel/prom.c by Stephen Rothwell and 19 18 * Grant Likely. 20 - * 21 - * This program is free software; you can redistribute it and/or 22 - * modify it under the terms of the GNU General Public License 23 - * as published by the Free Software Foundation; either version 24 - * 2 of the License, or (at your option) any later version. 25 19 */ 26 20 27 21 #define pr_fmt(fmt) "OF: " fmt
+1 -4
drivers/of/resolver.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Functions for dealing with DT resolution 3 4 * 4 5 * Copyright (C) 2012 Pantelis Antoniou <panto@antoniou-consulting.com> 5 6 * Copyright (C) 2012 Texas Instruments Inc. 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * version 2 as published by the Free Software Foundation. 10 7 */ 11 8 12 9 #define pr_fmt(fmt) "OF: resolver: " fmt
+1
drivers/of/unittest-data/overlay_bad_symbol.dts
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /dts-v1/; 2 3 /plugin/; 3 4
+1 -5
include/linux/of.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 1 2 #ifndef _LINUX_OF_H 2 3 #define _LINUX_OF_H 3 4 /* ··· 10 9 * Updates for PPC64 by Peter Bergner & David Engebretsen, IBM Corp. 11 10 * Updates for SPARC64 by David S. Miller 12 11 * Derived from PowerPC and Sparc prom.h files by Stephen Rothwell, IBM Corp. 13 - * 14 - * This program is free software; you can redistribute it and/or 15 - * modify it under the terms of the GNU General Public License 16 - * as published by the Free Software Foundation; either version 17 - * 2 of the License, or (at your option) any later version. 18 12 */ 19 13 #include <linux/types.h> 20 14 #include <linux/bitops.h>
+1 -4
include/linux/of_dma.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * OF helpers for DMA request / controller 3 4 * 4 5 * Based on of_gpio.h 5 6 * 6 7 * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/ 7 - * 8 - * This program is free software; you can redistribute it and/or modify 9 - * it under the terms of the GNU General Public License version 2 as 10 - * published by the Free Software Foundation. 11 8 */ 12 9 13 10 #ifndef __LINUX_OF_DMA_H
+1 -4
include/linux/of_fdt.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Definitions for working with the Flattened Device Tree data format 3 4 * 4 5 * Copyright 2009 Benjamin Herrenschmidt, IBM Corp 5 6 * benh@kernel.crashing.org 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * version 2 as published by the Free Software Foundation. 10 7 */ 11 8 12 9 #ifndef _LINUX_OF_FDT_H
+1 -5
include/linux/of_gpio.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 1 2 /* 2 3 * OF helpers for the GPIO API 3 4 * 4 5 * Copyright (c) 2007-2008 MontaVista Software, Inc. 5 6 * 6 7 * Author: Anton Vorontsov <avorontsov@ru.mvista.com> 7 - * 8 - * This program is free software; you can redistribute it and/or modify 9 - * it under the terms of the GNU General Public License as published by 10 - * the Free Software Foundation; either version 2 of the License, or 11 - * (at your option) any later version. 12 8 */ 13 9 14 10 #ifndef __LINUX_OF_GPIO_H
+1 -4
include/linux/of_graph.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * OF graph binding parsing helpers 3 4 * ··· 7 6 * 8 7 * Copyright (C) 2012 Renesas Electronics Corp. 9 8 * Author: Guennadi Liakhovetski <g.liakhovetski@gmx.de> 10 - * 11 - * This program is free software; you can redistribute it and/or modify 12 - * it under the terms of version 2 of the GNU General Public License as 13 - * published by the Free Software Foundation. 14 9 */ 15 10 #ifndef __LINUX_OF_GRAPH_H 16 11 #define __LINUX_OF_GRAPH_H
+1 -5
include/linux/of_pdt.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 1 2 /* 2 3 * Definitions for building a device tree by calling into the 3 4 * Open Firmware PROM. 4 5 * 5 6 * Copyright (C) 2010 Andres Salomon <dilinger@queued.net> 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 10 - * 2 of the License, or (at your option) any later version. 11 7 */ 12 8 13 9 #ifndef _LINUX_OF_PDT_H
+1 -6
include/linux/of_platform.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0+ */ 1 2 #ifndef _LINUX_OF_PLATFORM_H 2 3 #define _LINUX_OF_PLATFORM_H 3 4 /* 4 5 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp. 5 6 * <benh@kernel.crashing.org> 6 - * 7 - * This program is free software; you can redistribute it and/or 8 - * modify it under the terms of the GNU General Public License 9 - * as published by the Free Software Foundation; either version 10 - * 2 of the License, or (at your option) any later version. 11 - * 12 7 */ 13 8 14 9 #include <linux/device.h>