]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: prevent NULL dereference for dma_ops
authorJaehoon Chung <jh80.chung@samsung.com>
Wed, 18 Apr 2012 06:42:31 +0000 (15:42 +0900)
committerChris Ball <cjb@laptop.org>
Sat, 21 Apr 2012 01:52:05 +0000 (21:52 -0400)
commit7a7d2c4e8de6de8db4e173c798518f1be8189b1f
tree4b258ea786edda6cc9903319459143cc10d50775
parentec756a977fe407b2a9a3b15b05e8382c973738b1
mmc: dw_mmc: prevent NULL dereference for dma_ops

Now, dma_ops is assumed that use the IDMAC.  But if dma_ops is assigned
the pdata->dma_ops, we didn't ensure that callback function is defined.

If the callback isn't defined, then we should run in PIO mode.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/dw_mmc.c