On Wed, Jun 15, 2011 at 01:38:17AM +0100, David Howells wrote: > Fix the error handling in the EFIFB driver if platform_driver_probe() fails. > In that case, the code will pass the driver struct to the _device_ > unregistration function. It presumably should pass a pointer to the device > struct instead. > > The compiler gives the following warning to indicate this: > > drivers/video/efifb.c: In function 'efifb_init': > drivers/video/efifb.c:544:3: warning: passing argument 1 of 'platform_device_unregister' from incompatible pointer type > include/linux/platform_device.h:40:13: note: expected 'struct platform_device *' but argument is of type 'struct platform_driver *' > > Signed-off-by: David Howells <dhowells@xxxxxxxxxx> > cc: Peter Jones <pjones@xxxxxxxxxx> > cc: linux-fbdev@xxxxxxxxxxxxxxx > cc: stable@xxxxxxxxxx Thanks, I've already queued a fix for this. -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html