Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mfd: atmel-hlcdc: Clean invalid sys_clk pointer
In case the Device Tree provided the LVDS PLL instead of the GCK, the sys_clk pointer here was assigned a PTR_ERR. From then, further code in drivers/pwm/pwm-atmel-hlcdc.c would simply test sys_clk against NULL and treat sys_clk as valid, causing a Oops: Unable to handle kernel paging request at virtual address fffffffe [fffffffe] *pgd=6ffde861, *pte=00000000, *ppte=00000000 Internal error: Oops: 37 [#1] ARM Fixes: 3887775 ("mfd: atmel-hlcdc: Obtain essential clock for LCD operation") Signed-off-by: Aubin Constans <aubin.constans@microchip.com>
- Loading branch information