can: sja1000: of: add per-compatible init hook
authorDamien Riegel <damien.riegel@savoirfairelinux.com>
Tue, 12 Jan 2016 22:31:18 +0000 (17:31 -0500)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sat, 20 Feb 2016 13:56:00 +0000 (14:56 +0100)
commitf49cbe6b7988b51aa2b72c45d4332fabea62fba6
treea1cfd97d66ceff39821f8f686f4f3609d3a55252
parent80c804bfc487c6df783c258b9034b9d81c34f7a0
can: sja1000: of: add per-compatible init hook

This commit adds the capability to allocate and init private data
embedded in the sja1000_priv structure on a per-compatible basis. The
device node is passed as a parameter of the init callback to allow
parsing of custom device tree properties.

Signed-off-by: Damien Riegel <damien.riegel@savoirfairelinux.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/sja1000_platform.c