[PATCH] pwm: Ensure callbacks exist before calling them