cc2520: Move the device init to application level

This is needed because in the microkernel, the system clock
is not yet running and the cc2520 driver needs that. By moving
the device initialization later, the clock gets to run and
the cc2520 driver works both in nanokernel and microkernel.

See also related commit 3c66686a43
for details.

Change-Id: Idc5530398b4cff2bb3e0955c8ab57c5f03344079
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-02-11 17:16:24 +02:00
commit d1951f4f9e

View file

@ -1254,4 +1254,4 @@ static int cc2520_init(struct device *dev)
DEVICE_INIT(cc2520, CONFIG_CC2520_DRV_NAME,
cc2520_init, NULL, &cc2520_config,
NANOKERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);