summaryrefslogtreecommitdiffstats
path: root/net/phonet/af_phonet.c
diff options
context:
space:
mode:
authorAlexey Sheplyakov <asheplyakov@basealt.ru>2021-11-09 19:34:02 +0400
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-12-10 17:46:54 +0100
commita663bd19114d79f0902e2490fc484e5a7419cdc2 (patch)
tree148d07cdb623a03d697aa964a1262f74772d48f9 /net/phonet/af_phonet.c
parent53e87e3cdc155f20c3417b689df8d2ac88d79576 (diff)
downloadlinux-a663bd19114d79f0902e2490fc484e5a7419cdc2.tar.bz2
clocksource/drivers/dw_apb_timer_of: Fix probe failure
The driver refuses to probe with -EINVAL since the commit 5d9814df0aec ("clocksource/drivers/dw_apb_timer_of: Add error handling if no clock available"). Before the driver used to probe successfully if either "clock-freq" or "clock-frequency" properties has been specified in the device tree. That commit changed if (A && B) panic("No clock nor clock-frequency property"); into if (!A && !B) return 0; That's a bug: the reverse of `A && B` is '!A || !B', not '!A && !B' Signed-off-by: Vadim V. Vlasov <vadim.vlasov@elpitech.ru> Signed-off-by: Alexey Sheplyakov <asheplyakov@basealt.ru> Fixes: 5d9814df0aec56a6 ("clocksource/drivers/dw_apb_timer_of: Add error handling if no clock available"). Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Vadim V. Vlasov <vadim.vlasov@elpitech.ru> Acked-by: Dinh Nguyen <dinguyen@kernel.org> Link: https://lore.kernel.org/r/20211109153401.157491-1-asheplyakov@basealt.ru Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'net/phonet/af_phonet.c')
0 files changed, 0 insertions, 0 deletions