From: Alexander Aring Date: Wed, 5 Nov 2014 19:51:17 +0000 (+0100) Subject: ieee802154: rework interface registration X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~66^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ae67bacd9654b0e26b9f248249e9ee1b6e338b;p=pandora-kernel.git ieee802154: rework interface registration This patch meld mac802154_netdev_register into ieee802154_if_add function. Also we have now only one alloc_netdev call with one interface setup routine "ieee802154_if_setup" instead two different one for each interface type. This patch checks via runtime the interface type and do different handling now. Additional we add the wpan_dev struct in ieee802154_sub_if_data and set the new ieee802154_ptr while netdev registration. This behaviour is very similar the mac80211 netdev registration functionality. Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed