From: Ferenc Wagner Date: Fri, 7 Jan 2011 14:17:47 +0000 (+0100) Subject: driver core: Replace the dangerous to_root_device macro with an inline function X-Git-Tag: v2.6.39-rc1~471^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=481e20799bdcf98fd5a1d829d187239a90b15395;p=pandora-kernel.git driver core: Replace the dangerous to_root_device macro with an inline function The original macro worked only when applied to variables named 'dev'. While this could have been fixed by simply renaming the macro argument, a more type-safe replacement by an inline function is preferred. Signed-off-by: Ferenc Wagner Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed