[PATCH 1/3] video: mxsfb: smarten the code a little bit

Arnd Bergmann arnd at arndb.de
Sat Mar 5 11:41:11 EST 2011


On Saturday 05 March 2011 17:18:49 Shawn Guo wrote:
> @@ -882,7 +884,6 @@ static struct platform_device_id mxsfb_devtype[] = {
>         }, {
>                 .name = "imx28-fb",
>                 .driver_data = MXSFB_V4,
> -       }, {
>         },
>  };

This is broken, you need to have an empty entry as the end marker,
otherwise, the match function will interpret whatever comes in 
memory after the last entry as input data, until it hits zeroes.

	Arnd



More information about the linux-arm-kernel mailing list