-
Wei Yongjun authored
Add the missing platform_driver_unregister() before return from amd_energy_init() in the error handling case. Fixes: 8abee956 ("hwmon: Add amd_energy driver to report energy counters") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Naveen krishna Chatradhi <nchatrad@amd.com> Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Link: https://lore.kernel.org/r/20200527022417.105620-1-weiyongjun1@huawei.comSigned-off-by: Guenter Roeck <linux@roeck-us.net>
59dd36f4