Subject: [PATCH 2/3] pwm: bcm2835: prevent division by zero

From: [email-masked] (Stefan Wahren)
Date: Wed, 2 Dec 2015 18:08:45 +0100

Am 02.12.2015 um 00:16 schrieb Eric Anholt:
> Stefan Wahren <[email-masked]> writes:
>
>> It's possible that the pwm clock become an orphan. So better
>> check the result of clk_get_rate in order to prevent a division
>> by zero.
> How would we lose our clock when we're keeping the clock enabled from
> driver probe until remove?

It's not the problem that we lose the clock inside this driver. The pwm
clock could be initial assigned to a unregistered parent clock like "GND".

I'm refering to this discussion:

http://lists.infradead.org/pipermail/linux-rpi-kernel/2015-November/002603.html

>
> Patches 1 and 3 are:
>
> Reviewed-by: Eric Anholt <[email-masked]>