summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-07 17:30:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-07 18:36:43 +0100
commit989d42e85dc2f6823f39b8e9d080fd04bae0645d (patch)
tree89dc96baef4a6af8644ee6cab7a356e409b38e7a /drivers/base
parent045c5f75b77177ad19fe747e33aae2249a12e827 (diff)
downloadop-kernel-dev-989d42e85dc2f6823f39b8e9d080fd04bae0645d.zip
op-kernel-dev-989d42e85dc2f6823f39b8e9d080fd04bae0645d.tar.gz
driver core: add SPDX identifiers to all driver core files
It's good to have SPDX identifiers in all files to make it easier to audit the kernel tree for correct licenses. Update the driver core files files with the correct SPDX license identifier based on the license text in the file itself. The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. This work is based on a script and data from Thomas Gleixner, Philippe Ombredanne, and Kate Stewart. Cc: Johannes Berg <johannes@sipsolutions.net> Cc: "Luis R. Rodriguez" <mcgrof@kernel.org> Cc: William Breathitt Gray <vilhelm.gray@gmail.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Kate Stewart <kstewart@linuxfoundation.org> Cc: Philippe Ombredanne <pombredanne@nexb.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/attribute_container.c1
-rw-r--r--drivers/base/bus.c1
-rw-r--r--drivers/base/cacheinfo.c1
-rw-r--r--drivers/base/class.c1
-rw-r--r--drivers/base/component.c1
-rw-r--r--drivers/base/container.c1
-rw-r--r--drivers/base/core.c1
-rw-r--r--drivers/base/cpu.c1
-rw-r--r--drivers/base/dd.c1
-rw-r--r--drivers/base/devcoredump.c1
-rw-r--r--drivers/base/devres.c1
-rw-r--r--drivers/base/dma-contiguous.c1
-rw-r--r--drivers/base/dma-mapping.c1
-rw-r--r--drivers/base/driver.c1
-rw-r--r--drivers/base/firmware.c1
-rw-r--r--drivers/base/firmware_class.c1
-rw-r--r--drivers/base/hypervisor.c1
-rw-r--r--drivers/base/init.c1
-rw-r--r--drivers/base/isa.c1
-rw-r--r--drivers/base/map.c1
-rw-r--r--drivers/base/module.c1
-rw-r--r--drivers/base/pinctrl.c1
-rw-r--r--drivers/base/platform-msi.c1
-rw-r--r--drivers/base/platform.c1
-rw-r--r--drivers/base/property.c1
-rw-r--r--drivers/base/soc.c1
-rw-r--r--drivers/base/syscore.c1
-rw-r--r--drivers/base/test/test_async_driver_probe.c1
-rw-r--r--drivers/base/topology.c1
-rw-r--r--drivers/base/transport_class.c1
30 files changed, 30 insertions, 0 deletions
diff --git a/drivers/base/attribute_container.c b/drivers/base/attribute_container.c
index 95e3ef8..218b9de 100644
--- a/drivers/base/attribute_container.c
+++ b/drivers/base/attribute_container.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* attribute_container.c - implementation of a simple container for classes
*
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 22a64fd3..46ddb96 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* bus.c - bus driver management
*
diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c
index eb3af27..e321a7e 100644
--- a/drivers/base/cacheinfo.c
+++ b/drivers/base/cacheinfo.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* cacheinfo support - processor cache information via sysfs
*
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 52eb8e6..61220ea 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* class.c - basic device class management
*
diff --git a/drivers/base/component.c b/drivers/base/component.c
index 89b032f..c96ed80 100644
--- a/drivers/base/component.c
+++ b/drivers/base/component.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Componentized device handling.
*
diff --git a/drivers/base/container.c b/drivers/base/container.c
index ecbfbe2..ddc68a1 100644
--- a/drivers/base/container.c
+++ b/drivers/base/container.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* System bus type for containers.
*
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 110230d..aa0593f 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* drivers/base/core.c - core driver model code (device registration, etc)
*
diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 58a9b60..31d0ee5 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* CPU subsystem support
*/
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 2c964f5..47ac378 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* drivers/base/dd.c - The core device/driver interactions.
*
diff --git a/drivers/base/devcoredump.c b/drivers/base/devcoredump.c
index 7be310f..3133684 100644
--- a/drivers/base/devcoredump.c
+++ b/drivers/base/devcoredump.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* This file is provided under the GPLv2 license.
*
diff --git a/drivers/base/devres.c b/drivers/base/devres.c
index 71d5770..1b7a9a8 100644
--- a/drivers/base/devres.c
+++ b/drivers/base/devres.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* drivers/base/devres.c - device resource management
*
diff --git a/drivers/base/dma-contiguous.c b/drivers/base/dma-contiguous.c
index ea9726e..7c95410 100644
--- a/drivers/base/dma-contiguous.c
+++ b/drivers/base/dma-contiguous.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
/*
* Contiguous Memory Allocator for DMA mapping framework
* Copyright (c) 2010-2011 by Samsung Electronics.
diff --git a/drivers/base/dma-mapping.c b/drivers/base/dma-mapping.c
index e584edd..c7e7806a 100644
--- a/drivers/base/dma-mapping.c
+++ b/drivers/base/dma-mapping.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* drivers/base/dma-mapping.c - arch-independent dma-mapping routines
*
diff --git a/drivers/base/driver.c b/drivers/base/driver.c
index 4eabfe2..6a93c75 100644
--- a/drivers/base/driver.c
+++ b/drivers/base/driver.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* driver.c - centralized device driver management
*
diff --git a/drivers/base/firmware.c b/drivers/base/firmware.c
index 1138155..0ef2a36 100644
--- a/drivers/base/firmware.c
+++ b/drivers/base/firmware.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* firmware.c - firmware subsystem hoohaw.
*
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 43b97a8..7dd36ac 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* firmware_class.c - Multi purpose firmware loading support
*
diff --git a/drivers/base/hypervisor.c b/drivers/base/hypervisor.c
index 4f8b741..8dbd98c 100644
--- a/drivers/base/hypervisor.c
+++ b/drivers/base/hypervisor.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* hypervisor.c - /sys/hypervisor subsystem.
*
diff --git a/drivers/base/init.c b/drivers/base/init.c
index 48c0e22..0bf84b9 100644
--- a/drivers/base/init.c
+++ b/drivers/base/init.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2002-3 Patrick Mochel
* Copyright (c) 2002-3 Open Source Development Labs
diff --git a/drivers/base/isa.c b/drivers/base/isa.c
index cd6ccdc..61ab202 100644
--- a/drivers/base/isa.c
+++ b/drivers/base/isa.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* ISA bus.
*/
diff --git a/drivers/base/map.c b/drivers/base/map.c
index c1d3823..07daaf6 100644
--- a/drivers/base/map.c
+++ b/drivers/base/map.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* linux/drivers/base/map.c
*
diff --git a/drivers/base/module.c b/drivers/base/module.c
index 2a21578..9e50e55 100644
--- a/drivers/base/module.c
+++ b/drivers/base/module.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* module.c - module sysfs fun for drivers
*
diff --git a/drivers/base/pinctrl.c b/drivers/base/pinctrl.c
index eb929dd..fec06a1 100644
--- a/drivers/base/pinctrl.c
+++ b/drivers/base/pinctrl.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Driver core interface to the pinctrl subsystem.
*
diff --git a/drivers/base/platform-msi.c b/drivers/base/platform-msi.c
index e547352..d7c56d5b 100644
--- a/drivers/base/platform-msi.c
+++ b/drivers/base/platform-msi.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* MSI framework for platform devices
*
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index c203fb9..be287c7 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* platform.c - platform 'pseudo' bus for legacy devices
*
diff --git a/drivers/base/property.c b/drivers/base/property.c
index 851b1b6..f64bf6be 100644
--- a/drivers/base/property.c
+++ b/drivers/base/property.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* property.c - Unified device property interface.
*
diff --git a/drivers/base/soc.c b/drivers/base/soc.c
index 909deda..b1e6e7c 100644
--- a/drivers/base/soc.c
+++ b/drivers/base/soc.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) ST-Ericsson SA 2011
*
diff --git a/drivers/base/syscore.c b/drivers/base/syscore.c
index 8d98a32..34f71a4 100644
--- a/drivers/base/syscore.c
+++ b/drivers/base/syscore.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* syscore.c - Execution of system core operations.
*
diff --git a/drivers/base/test/test_async_driver_probe.c b/drivers/base/test/test_async_driver_probe.c
index a3355d6..58b445e 100644
--- a/drivers/base/test/test_async_driver_probe.c
+++ b/drivers/base/test/test_async_driver_probe.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2014 Google, Inc.
*
diff --git a/drivers/base/topology.c b/drivers/base/topology.c
index d936fcf..5abc176 100644
--- a/drivers/base/topology.c
+++ b/drivers/base/topology.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
/*
* driver/base/topology.c - Populate sysfs with cpu topology information
*
diff --git a/drivers/base/transport_class.c b/drivers/base/transport_class.c
index f6c453c..7503783 100644
--- a/drivers/base/transport_class.c
+++ b/drivers/base/transport_class.c
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
/*
* transport_class.c - implementation of generic transport classes
* using attribute_containers
OpenPOWER on IntegriCloud