Skip to content

Commit 1c28250

Browse files
mwilczyrafaeljw
authored andcommitted
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>
1 parent dcca12a commit 1c28250

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

drivers/acpi/nfit/core.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3399,11 +3399,6 @@ static int acpi_nfit_add(struct acpi_device *adev)
33993399
adev);
34003400
}
34013401

3402-
static void acpi_nfit_remove(struct acpi_device *adev)
3403-
{
3404-
/* see acpi_nfit_unregister */
3405-
}
3406-
34073402
static void acpi_nfit_update_notify(struct device *dev, acpi_handle handle)
34083403
{
34093404
struct acpi_nfit_desc *acpi_desc = dev_get_drvdata(dev);
@@ -3485,7 +3480,6 @@ static struct acpi_driver acpi_nfit_driver = {
34853480
.ids = acpi_nfit_ids,
34863481
.ops = {
34873482
.add = acpi_nfit_add,
3488-
.remove = acpi_nfit_remove,
34893483
},
34903484
};
34913485

0 commit comments

Comments
 (0)