summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorM. Vefa Bicakci <m.v.b@runbox.com>2019-08-15 21:41:40 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-05 15:12:05 +0200
commit005d9ec550d3bb284eda8b00111b7adc60dc5c77 (patch)
tree6a6b0e9f382db9efe0b3d76402269b9d0411b99a /drivers
parentdba6520552f4c57c2aa272dd653074b4b50be8a4 (diff)
downloadlinux-stable-005d9ec550d3bb284eda8b00111b7adc60dc5c77.tar.gz
linux-stable-005d9ec550d3bb284eda8b00111b7adc60dc5c77.tar.bz2
linux-stable-005d9ec550d3bb284eda8b00111b7adc60dc5c77.zip
platform/x86: intel_pmc_core_pltdrv: Module removal warning fix
[ Upstream commit 0b43e41e93815ecd9616759cf5d64d3a7be8e6fb ] Prior to this commit, removing the intel_pmc_core_pltdrv module would cause the following warning: Device 'intel_pmc_core.0' does not have a release() function, it is broken and must be fixed. See Documentation/kobject.txt. WARNING: CPU: 0 PID: 2202 at drivers/base/core.c:1238 device_release+0x6f/0x80 This commit hence adds an empty release function for the driver. Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/intel_pmc_core_pltdrv.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/platform/x86/intel_pmc_core_pltdrv.c b/drivers/platform/x86/intel_pmc_core_pltdrv.c
index a8754a6db1b8..186540014c48 100644
--- a/drivers/platform/x86/intel_pmc_core_pltdrv.c
+++ b/drivers/platform/x86/intel_pmc_core_pltdrv.c
@@ -18,8 +18,16 @@
#include <asm/cpu_device_id.h>
#include <asm/intel-family.h>
+static void intel_pmc_core_release(struct device *dev)
+{
+ /* Nothing to do. */
+}
+
static struct platform_device pmc_core_device = {
.name = "intel_pmc_core",
+ .dev = {
+ .release = intel_pmc_core_release,
+ },
};
/*