ACPI: NFIT: Remove unnecessary .remove callback

The ACPI NFIT driver provides an empty function as it's .remove() callback
which is not necessary, so drop the empty acpi_nfit_remove() and the
.remove() callback initialization from it.

Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Michal Wilczynski <michal.wilczynski@intel.com>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
Michal Wilczynski 2023-07-03 11:02:51 +03:00 committed by Rafael J. Wysocki
parent dcca12ab62
commit 1c28250403

View File

@ -3399,11 +3399,6 @@ static int acpi_nfit_add(struct acpi_device *adev)
adev); adev);
} }
static void acpi_nfit_remove(struct acpi_device *adev)
{
/* see acpi_nfit_unregister */
}
static void acpi_nfit_update_notify(struct device *dev, acpi_handle handle) static void acpi_nfit_update_notify(struct device *dev, acpi_handle handle)
{ {
struct acpi_nfit_desc *acpi_desc = dev_get_drvdata(dev); struct acpi_nfit_desc *acpi_desc = dev_get_drvdata(dev);
@ -3485,7 +3480,6 @@ static struct acpi_driver acpi_nfit_driver = {
.ids = acpi_nfit_ids, .ids = acpi_nfit_ids,
.ops = { .ops = {
.add = acpi_nfit_add, .add = acpi_nfit_add,
.remove = acpi_nfit_remove,
}, },
}; };