Re: [PATCH] video: fbdev: fsl: fix kernel crash when diu_ops is not implemented
From: Timur Tabi <hidden>
Date: 2015-11-24 16:56:07
From: Timur Tabi <hidden>
Date: 2015-11-24 16:56:07
On Tue, Nov 24, 2015 at 11:54 AM, Timur Tabi [off-list ref] wrote:
Well, if you're concern is that there's no platform code, then there should be a check that says, "see if there's any platform code", not "let's check this obscure function and abort without explanation if it's not initialized." Alternatively, why can't you just do this, in update_lcdc():
[Stupid gmail sent my message before I was done typing] if (diu_ops.set_pixel_clock) diu_ops.set_pixel_clock(var->pixclock);