> -     of_property_read_u32(np, "clock-frequency", &pdata->clk_freq);
> +     /* Default to 400 kHz if no frequency is given in the node */
> +     if (of_property_read_u32(np, "clock-frequency", &nmk->clk_freq))
> +             nmk->clk_freq = 400000;

I can't really recommend this. 100kHz is something all devices support,
but, although common, 400 kHz is already an extension of the standard.

Let me know if I should fix this up for you.

Attachment: signature.asc
Description: Digital signature

Reply via email to