base/memory, hotplug: fix a kernel oops in show_valid_zones()
[firefly-linux-kernel-4.4.55.git] / drivers / pwm / pwm-sun4i.c
index b093cc55f799f2e4350921926f405081c9cb0ebf..67af9f62361fdc4b712c8adafbe4e331e32af9ae 100644 (file)
@@ -115,7 +115,7 @@ static int sun4i_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
                 * is not an integer so round it half up instead of
                 * truncating to get less surprising values.
                 */
-               div = clk_rate * period_ns + NSEC_PER_SEC/2;
+               div = clk_rate * period_ns + NSEC_PER_SEC / 2;
                do_div(div, NSEC_PER_SEC);
                if (div - 1 > PWM_PRD_MASK)
                        prescaler = 0;