|
@@ -1736,12 +1736,12 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc,
|
|
struct nd_region_desc *ndr_desc,
|
|
struct nd_region_desc *ndr_desc,
|
|
struct acpi_nfit_system_address *spa)
|
|
struct acpi_nfit_system_address *spa)
|
|
{
|
|
{
|
|
- int i, spa_type = nfit_spa_type(spa);
|
|
|
|
struct device *dev = acpi_desc->dev;
|
|
struct device *dev = acpi_desc->dev;
|
|
struct nd_interleave_set *nd_set;
|
|
struct nd_interleave_set *nd_set;
|
|
u16 nr = ndr_desc->num_mappings;
|
|
u16 nr = ndr_desc->num_mappings;
|
|
struct nfit_set_info2 *info2;
|
|
struct nfit_set_info2 *info2;
|
|
struct nfit_set_info *info;
|
|
struct nfit_set_info *info;
|
|
|
|
+ int i;
|
|
|
|
|
|
nd_set = devm_kzalloc(dev, sizeof(*nd_set), GFP_KERNEL);
|
|
nd_set = devm_kzalloc(dev, sizeof(*nd_set), GFP_KERNEL);
|
|
if (!nd_set)
|
|
if (!nd_set)
|
|
@@ -1749,11 +1749,6 @@ static int acpi_nfit_init_interleave_set(struct acpi_nfit_desc *acpi_desc,
|
|
ndr_desc->nd_set = nd_set;
|
|
ndr_desc->nd_set = nd_set;
|
|
guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid);
|
|
guid_copy(&nd_set->type_guid, (guid_t *) spa->range_guid);
|
|
|
|
|
|
- if (spa_type == NFIT_SPA_PM || spa_type == NFIT_SPA_VOLATILE)
|
|
|
|
- /* pass */;
|
|
|
|
- else
|
|
|
|
- return 0;
|
|
|
|
-
|
|
|
|
info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);
|
|
info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);
|
|
if (!info)
|
|
if (!info)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|