mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 15:59:42 +02:00
5e5c7d5aa1
Fixes booting the device with button hotplug enabled (#10785). git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33340 3c298f89-4303-0410-b956-a3cf2f4a3e73
24 lines
897 B
Diff
24 lines
897 B
Diff
From c7c3c338cb25d7f55ddb3f6bfbf3572758ca3896 Mon Sep 17 00:00:00 2001
|
|
From: Jonas Gorski <jonas.gorski@gmail.com>
|
|
Date: Thu, 10 Nov 2011 16:53:08 +0100
|
|
Subject: [PATCH 50/79] MTD: DEVICES: m25p80: use parsers if provided in flash
|
|
platform data
|
|
|
|
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
|
|
---
|
|
drivers/mtd/devices/m25p80.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/mtd/devices/m25p80.c
|
|
+++ b/drivers/mtd/devices/m25p80.c
|
|
@@ -986,7 +986,8 @@ static int __devinit m25p_probe(struct s
|
|
/* partitions should match sector boundaries; and it may be good to
|
|
* use readonly partitions for writeprotected sectors (BP2..BP0).
|
|
*/
|
|
- return mtd_device_parse_register(&flash->mtd, NULL, &ppdata,
|
|
+ return mtd_device_parse_register(&flash->mtd,
|
|
+ data ? data->part_probe_types : NULL, &ppdata,
|
|
data ? data->parts : NULL,
|
|
data ? data->nr_parts : 0);
|
|
}
|