bcma: move code for core registration into separate function
authorRafał Miłecki <zajec5@gmail.com>
Thu, 4 Sep 2014 22:18:48 +0000 (00:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Sep 2014 19:27:20 +0000 (15:27 -0400)
commit6e094bd805a9b6ad2f5421125db8f604a166616c
tree5b23f3a2c3e0f1c37ae803432dee1553daa2e212
parented364abffd6e19bec67b7ccda8237213b8b37640
bcma: move code for core registration into separate function

This cleans code a bit and will us to register cores in other places as
well. The only difference with this patch is using "core_index" for
setting device name.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/main.c