From: Shawn Guo Date: Mon, 5 Dec 2011 05:01:15 +0000 (+0000) Subject: net/fec: fix the use of pdev->id X-Git-Tag: v3.2-rc6~3^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43af940c54d712ab5e6d6798a82498b25c2af299;p=pandora-kernel.git net/fec: fix the use of pdev->id The pdev->id is used in several places for different purpose. All these uses assume it's always the id of fec device which is >= 0. However this is only true for non-DT case. When DT plays, pdev->id is always -1, which will break these pdev->id users. Instead of fixing all these users one by one, this patch introduces a new member 'dev_id' to 'struct fec_enet_private' for holding the correct fec device id, and replaces all the existing uses of pdev->id with this dev_id. Signed-off-by: Shawn Guo Signed-off-by: David S. Miller --- Reading git-diff-tree failed