[Dell S6100] Properly release memory upon ICH driver deinit (#5561)

During platform deinitialization, dell_ich is not removed properly and when we do initialize s6100 platform, ICH driver sysfs attributes are not attached. Because of this, get_transceiver_change_event returns error and this leads xcvrd to crash.
This commit is contained in:
Aravind Mani 2020-10-08 22:42:54 +05:30 committed by GitHub
parent 744612d269
commit 6edb5551cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -926,7 +926,7 @@ static int dell_ich_remove(struct platform_device *pdev)
// Unmap and release PMC regions
if(ich_data->pmc_base) iounmap(ich_data->pmc_base);
if(ich_data->pmc_alloc) release_region(pmc_res.start, PMC_REG_LEN);
if(ich_data->pmc_alloc) release_mem_region(pmc_res.start, PMC_REG_LEN);
ret = acpi_remove_sci_handler(dell_ich_sci_handler);
if(ret) {