]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
dw_dmac: call .probe after we have a device in place
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 10 Jan 2013 08:53:02 +0000 (10:53 +0200)
committerVinod Koul <vinod.koul@intel.com>
Sat, 12 Jan 2013 13:07:22 +0000 (05:07 -0800)
commit01126856ff4f7d4cc5899c208fd4d3c7d0a2b83a
tree1254d60ed83826b4a4dd7db2c7c7c4de44b4d2bb
parenta725dcc0342b4d9ffc6ae4aedc2973d902aabeb1
dw_dmac: call .probe after we have a device in place

If we don't yet have the platform device for the driver when it is being loaded
we fail to probe the driver. So instead of calling probe() directly we call
platform_driver_register(). It will call the probe() immediately if we have the
device but also makes the driver to work on platforms where the platform device
is created later.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dw_dmac.c