mrf24j40: separate h/w init and add checkings
authorVarka Bhadram <varkabhadram@gmail.com>
Mon, 16 Jun 2014 03:42:31 +0000 (09:12 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2014 22:30:54 +0000 (15:30 -0700)
commit3dac9a79e1425069e7950bd46bd932e0b1c1d795
tree75b1b5de0cb0319c9b2b5d5eb0286c040e185195
parent7171511eaec5bf23fb06078f59784a3a0626b38f
mrf24j40: separate h/w init and add checkings

separate the mrf24j40 hardware initialisation from probe()
and adds the sanity checkings.

These checkings are required if somebody hasn't a right spi configuration
the probe function should fail. So we have to return from there.

Signed-off-by: Varka Bhadram <varkab@cdac.in>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/mrf24j40.c