From: Jingoo Han Date: Thu, 23 May 2013 10:47:58 +0000 (+0900) Subject: net: can: use platform_{get,set}_drvdata() X-Git-Tag: v3.11-rc1~16^2~186^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00e4bbc8cd7efac66caa4ce6bcf5f02e944184f6;p=pandora-kernel.git net: can: use platform_{get,set}_drvdata() Use the wrapper functions for getting and setting the driver data using platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev, so we can directly pass a struct platform_device. Also, unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure. Signed-off-by: Jingoo Han Signed-off-by: Marc Kleine-Budde --- Reading git-diff-tree failed