diff options
author | Junxiao Chang <junxiao.chang@intel.com> | 2019-04-08 17:40:22 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-15 11:54:57 +0200 |
commit | 912d34161326c7461250d36917663417bf8601dc (patch) | |
tree | 7339603f0bb03687b47cf0902daa4bcf0cd1381b /drivers/power | |
parent | 5f0c39bf7a7e8dacbe2af22014768a05b7e3ae68 (diff) |
platform/x86: intel_pmc_ipc: adding error handling
[ Upstream commit e61985d0550df8c2078310202aaad9b41049c36c ]
If punit or telemetry device initialization fails, pmc driver should
unregister and return failure.
This change is to fix a kernel panic when removing kernel module
intel_pmc_ipc.
Fixes: 48c1917088ba ("platform:x86: Add Intel telemetry platform device")
Signed-off-by: Junxiao Chang <junxiao.chang@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/power')
0 files changed, 0 insertions, 0 deletions