|
@@ -239,6 +239,9 @@ static int gpio_flash_probe(struct platform_device *pdev)
|
|
state->map.bankwidth = pdata->width;
|
|
state->map.bankwidth = pdata->width;
|
|
state->map.size = state->win_size * (1 << state->gpio_count);
|
|
state->map.size = state->win_size * (1 << state->gpio_count);
|
|
state->map.virt = ioremap_nocache(memory->start, state->map.size);
|
|
state->map.virt = ioremap_nocache(memory->start, state->map.size);
|
|
|
|
+ if (!state->map.virt)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
+
|
|
state->map.phys = NO_XIP;
|
|
state->map.phys = NO_XIP;
|
|
state->map.map_priv_1 = (unsigned long)state;
|
|
state->map.map_priv_1 = (unsigned long)state;
|
|
|
|
|