ARM: AM33XX: clock: Add dcan clock aliases for device-tree
authorVaibhav Hiremath <hvaibhav@ti.com>
Mon, 27 Aug 2012 10:04:02 +0000 (15:34 +0530)
committerPaul Walmsley <paul@pwsan.com>
Wed, 12 Sep 2012 22:28:35 +0000 (16:28 -0600)
commit83c115426818378370b8cf2be16ca19bdcdc2ac4
treeb7888605febe32d757a9be3ba74f8a08f154a6f9
parent78da264019e18db25b937fbb98328c680b1161cd
ARM: AM33XX: clock: Add dcan clock aliases for device-tree

Currently, the device names for the dcan module follows the
format "dcan.X", where 'X' is the dcan instance number.
On other side, driver may request for clock with/without con_id
and dev_id, and it is expected that platform should respect this
request and return the requested clock handle.

Now, when using device tree, the format of the device name created
by OF layer is different, "<reg-address>.<device-name>",
assuming that the device-tree "reg" property is specified.
This causes the look-up failure for clock node in dcan driver

To fix this add new dcan clock alias for using device-tree.

Signed-off-by: Vaibhav Hiremath <hvaibhav@ti.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Paul Walmsley <paul@pwsan.com>
Cc: Benoit Cousson <b-cousson@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Rob Herring <robherring2@gmail.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/clock33xx_data.c