Ben Dooks e8973637bd FB/S3C2410: check default_display parameter passed in platform data
Ensure that the default display parameter passed in via the
device's platform data is valid. It turns out when mach-bast.c
was updated, the default_display was set outside of the display
array bounds, causing a panic on startup.

If the default_display is bigger than num_displays, then generate
an error and refuse to initialise the driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Vincent Sanders <vince@simtec.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-06 10:41:18 -08:00
..
2008-02-05 09:44:22 -08:00
2008-02-06 10:41:01 -08:00
2008-02-05 09:44:23 -08:00
2008-02-03 17:12:34 +02:00
2008-02-06 10:41:15 -08:00
2008-02-05 09:44:13 -08:00
2008-02-06 10:41:01 -08:00
2008-02-04 23:50:03 +11:00
2008-02-06 10:41:02 -08:00
2008-02-03 17:21:01 +02:00
2008-02-06 10:41:10 -08:00
2008-02-06 10:41:01 -08:00
2008-02-06 10:41:08 -08:00
2008-02-06 10:41:01 -08:00
2008-02-03 17:30:25 +02:00
2008-02-06 10:41:07 -08:00
2008-02-04 23:50:13 +11:00
2008-02-06 10:41:15 -08:00
2008-02-05 09:44:12 -08:00
2008-02-05 09:44:12 -08:00