From: Lad, Prabhakar Date: Tue, 20 Nov 2012 10:30:36 +0000 (-0300) Subject: [media] davinci: vpbe: pass different platform names to handle different ip's X-Git-Tag: v3.9-rc1~93^2~496 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=caff80c35f923806b7e5ef312dce41663b5e99b9;p=pandora-kernel.git [media] davinci: vpbe: pass different platform names to handle different ip's The vpbe driver can handle different platforms DM644X, DM36X and DM355. To differentiate between this platforms venc_type/vpbe_type was passed as part of platform data which was incorrect. The correct way to differentiate to handle this case is by passing different platform names. This patch creates platform_device_id[] array supporting different platforms and assigns id_table to the platform driver, and finally in the probe gets the actual device by using platform_get_device_id() and gets the appropriate driver data for that platform. Taking this approach will also make the DT transition easier. Signed-off-by: Lad, Prabhakar Signed-off-by: Manjunath Hadli Acked-by: Sekhar Nori Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed