|
@@ -85,6 +85,7 @@ static int physmap_flash_probe(struct platform_device *dev)
|
|
struct physmap_flash_data *physmap_data;
|
|
struct physmap_flash_data *physmap_data;
|
|
struct physmap_flash_info *info;
|
|
struct physmap_flash_info *info;
|
|
const char **probe_type;
|
|
const char **probe_type;
|
|
|
|
+ const char **part_types;
|
|
int err = 0;
|
|
int err = 0;
|
|
int i;
|
|
int i;
|
|
int devices_found = 0;
|
|
int devices_found = 0;
|
|
@@ -171,7 +172,9 @@ static int physmap_flash_probe(struct platform_device *dev)
|
|
if (err)
|
|
if (err)
|
|
goto err_out;
|
|
goto err_out;
|
|
|
|
|
|
- mtd_device_parse_register(info->cmtd, part_probe_types, 0,
|
|
|
|
|
|
+ part_types = physmap_data->part_probe_types ? : part_probe_types;
|
|
|
|
+
|
|
|
|
+ mtd_device_parse_register(info->cmtd, part_types, 0,
|
|
physmap_data->parts, physmap_data->nr_parts);
|
|
physmap_data->parts, physmap_data->nr_parts);
|
|
return 0;
|
|
return 0;
|
|
|
|
|