]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
libnvdimm, nfit: Use ACPI_SIG_NFIT instead of hard coded string
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 21 Jan 2016 12:32:10 +0000 (20:32 +0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 11 Apr 2016 18:11:38 +0000 (11:11 -0700)
It's minor but that's still better to use ACPI_SIG_NFIT instead of hard
coded string.

Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Len Brown <lenb@kernel.org>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Acked-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/acpi/nfit.c

index db0f806b8388de5fedcc908a95d390dc204a26ed..a434b58c5e1178f45f984651ed8102d1585f07a7 100644 (file)
@@ -2372,7 +2372,7 @@ static int acpi_nfit_add(struct acpi_device *adev)
        acpi_size sz;
        int rc;
 
-       status = acpi_get_table_with_size("NFIT", 0, &tbl, &sz);
+       status = acpi_get_table_with_size(ACPI_SIG_NFIT, 0, &tbl, &sz);
        if (ACPI_FAILURE(status)) {
                /* This is ok, we could have an nvdimm hotplugged later */
                dev_dbg(dev, "failed to find NFIT at startup\n");