From: Timur Tabi Date: Thu, 12 Jan 2012 23:23:04 +0000 (-0800) Subject: phylib: introduce mdiobus_alloc_size() X-Git-Tag: v3.3-rc1~82^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb8a54a78e974e1af3e17fa38bb74d3747c5c1bd;p=pandora-kernel.git phylib: introduce mdiobus_alloc_size() Introduce function mdiobus_alloc_size() as an alternative to mdiobus_alloc(). Most callers of mdiobus_alloc() also allocate a private data structure, and then manually point bus->priv to this object. mdiobus_alloc_size() combines the two operations into one, which simplifies memory management. The original mdiobus_alloc() now just calls mdiobus_alloc_size(0). Signed-off-by: Timur Tabi Signed-off-by: David S. Miller --- Reading git-diff-tree failed