pwm: fix incorrect hook check

Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com>