Move platform device creation earlier in the initialization
authorCorey Minyard <cminyard@mvista.com>
Mon, 7 Nov 2016 14:37:06 +0000 (07:37 -0700)
committerCorey Minyard <cminyard@mvista.com>
Fri, 25 Nov 2016 00:09:39 +0000 (18:09 -0600)
commit1abf71eef32c7f242fe30ea66a635e297b2c1c8d
tree8c39c63e067dfb20cfb596a30ee12986b91748e1
parentc11daf6a8fcc42d540ad6d7bb06a6a203de908b3
Move platform device creation earlier in the initialization

Some logs are printed out early using smi->dev, but on a platform device
that is not created until later.  So move the creation of that device
structure earlier in the sequence so it can be used for printing.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
drivers/char/ipmi/ipmi_si_intf.c