diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 5429ec9ef..1e45c2e70 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -455,7 +455,7 @@ int acpi_nfit_ctl(struct nvdimm_bus_descriptor *nd_desc, struct nvdimm *nvdimm, *cmd_rc = -EINVAL; if (cmd == ND_CMD_CALL) - call_pkg = buf; + call_pkg = (struct nd_cmd_pkg *)buf; func = cmd_to_func(nfit_mem, cmd, call_pkg, &family); if (func < 0) return func;