Drivers need to get their driver data either from devicetree or the platform information. It should matter for the driver where this data comes from, so introduce a common function for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>