On Tue, Mar 17, 2009 at 08:38, <[email protected]> wrote: > --- trunk/drivers/video/backlight/adp5520_bl.c > +++ trunk/drivers/video/backlight/adp5520_bl.c > @@ -0,0 +1,368 @@ > +static int adp5520_bl_probe(struct platform_device *pdev) > +{ > + struct backlight_device *bl; > + struct adp5520_bl *data; > + int ret = 0; > + > + data = kzalloc(sizeof(struct adp5520_bl), GFP_KERNEL);
sizeof(*data) > + data->pdata = pdev->dev.platform_data; is it possible for platform_data to be NULL ? -mike _______________________________________________ Linux-kernel-commits mailing list [email protected] http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
