From: Jiri Benc Date: Fri, 12 Apr 2013 00:56:15 +0000 (+0000) Subject: ptp: dynamic allocation of PHC char devices X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7356a764cd76e155014c226ccb157219be918891;p=pandora-kernel.git ptp: dynamic allocation of PHC char devices As network adapters supporting PTP are becoming more common, machines with many NICs suddenly have many PHCs, too. The current limit of eight /dev/ptp* char devices (and thus, 8 network interfaces with PHC) is insufficient. Let the ptp driver allocate the char devices dynamically. Tested with 28 PHCs, removing and re-adding some of them. Thanks to Ben Hutchings for advice leading to simpler and cleaner patch. Signed-off-by: Jiri Benc Acked-by: Richard Cochran Signed-off-by: David S. Miller --- Reading git-diff-tree failed