flexcan: Prefer device tree clock frequency if available.
author[email protected] <[email protected]>
Tue, 16 Aug 2011 17:32:23 +0000 (17:32 +0000)
committerDavid S. Miller <[email protected]>
Thu, 18 Aug 2011 03:36:38 +0000 (20:36 -0700)
commit97efe9aef1ae8922666d32f28d712745a86859e9
treec02a00d17b63b8454dd69d874bc207fccb8d0aa7
parentc8aef4cb788b760331e6df06a5d93389824882b4
flexcan: Prefer device tree clock frequency if available.

If our CAN device's device tree node has a clock-frequency property,
then use that value for the can devices clock frequency.  If not, fall
back to asking the platform/mach code for the clock frequency associated
with the flexcan device.

Signed-off-by: Robin Holt <[email protected]>
Acked-by: Wolfgang Grandegger <[email protected]>,
Cc: Kumar Gala <[email protected]>
Cc: Marc Kleine-Budde <[email protected]>,
Cc: U Bhaskar-B22300 <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Grant Likely <[email protected]>
Cc: [email protected],
Cc: [email protected],
Cc: PPC list <[email protected]>
Cc: [email protected]
Signed-off-by: David S. Miller <[email protected]>
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt
drivers/net/can/flexcan.c