net: can: mscan: adjust to common clock support for mpc512x
authorGerhard Sittig <gsi@denx.de>
Sat, 30 Nov 2013 22:51:34 +0000 (23:51 +0100)
committerAnatolij Gustschin <agust@denx.de>
Sun, 12 Jan 2014 17:53:05 +0000 (18:53 +0100)
commit5ac22504f928db34a3a75ab67bf1eef82b91ef0b
tree05d4709c53108065711ee4ee93b5e63b0c03c067
parent17552189088d261a7bbc8fe7b974061fae938d26
net: can: mscan: adjust to common clock support for mpc512x

implement a .get_clock() callback for the MPC512x platform which uses
the common clock infrastructure (eliminating direct access to the clock
control registers from within the CAN network driver), and provide the
corresponding .put_clock() callback to release resources after use

acquire both the clock items for register access ("ipg") as well as for
wire communication ("can")

keep the previous implementation of MPC512x support in place during
migration, this results in a readable diff of the change

this change is neutral to the MPC5200 platform

Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: linux-can@vger.kernel.org
Signed-off-by: Gerhard Sittig <gsi@denx.de>
Signed-off-by: Anatolij Gustschin <agust@denx.de>
drivers/net/can/mscan/mpc5xxx_can.c