broadcom-diag: reoder some parts.

This was done to reduce the number of forward declaration needed.
This does not contain any real change in the code.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37278 3c298f89-4303-0410-b956-a3cf2f4a3e73
broadcom-diag: check the correct value for not null.

This also fixes a compile warning.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37279 3c298f89-4303-0410-b956-a3cf2f4a3e73
broadcom-diag: make it work with kernel 3.10

In kernel 3.10 the proc interface changed, this patch adds the changes needed for the new interface.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37280 3c298f89-4303-0410-b956-a3cf2f4a3e73