staging: most: move initialization of pointer
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 22 Dec 2015 09:52:53 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commit42e252a65d3bbd36106b3e243cb1e11136cecdf4
treeb2bfd31caf4ba8deb8f50e302db3844c3083121d
parent44fe57818b8038ece1d6089c5075a5c73ad7e18a
staging: most: move initialization of pointer

This patch makes function store_add_link initialize the pointer to an AIM
right before the channel is probed. It is needed, the AIM may already call
most_start_channel while probe_channel is still running. At this point the
pointer to the AIM must not be NULL.

Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/mostcore/core.c