static int vexpress_osc_set_rate(struct clk_hw *hw, unsigned long rate, unsigned long parent_rate) { struct vexpress_osc *osc = to_vexpress_osc(hw); return vexpress_config_write(osc->func, 0, rate); }
static void vexpress_reset_do(struct device *dev, const char *what) { int err = -ENOENT; struct vexpress_config_func *func = vexpress_config_func_get_by_dev(dev); if (func) { unsigned long timeout; err = vexpress_config_write(func, 0, 0); timeout = jiffies + HZ; while (time_before(jiffies, timeout)) cpu_relax(); } dev_emerg(dev, "Unable to %s (%d)\n", what, err); }