]> asedeno.scripts.mit.edu Git - linux.git/commit
platform/x86: intel_pmc_core_pltdrv: Module removal warning fix
authorM. Vefa Bicakci <m.v.b@runbox.com>
Fri, 16 Aug 2019 01:41:40 +0000 (21:41 -0400)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 7 Sep 2019 16:56:41 +0000 (19:56 +0300)
commit0b43e41e93815ecd9616759cf5d64d3a7be8e6fb
tree913f39aac09506404d41ed6243832ede494e717c
parent7d505758b1e556cdf65a5e451744fe0ae8063d17
platform/x86: intel_pmc_core_pltdrv: Module removal warning fix

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>
drivers/platform/x86/intel_pmc_core_pltdrv.c