- /*
- * Some platforms have special pci_alloc_consistent() implementations,
- * in these instances we can't use the generic consistent_alloc().
- */
-#ifdef CONFIG_SH_DREAMCAST
- if (dev && dev->bus == &pci_bus_type)
- return __pci_alloc_consistent(NULL, size, dma_handle);
-#endif
- if (sh_mv.mv_consistent_alloc)
- return sh_mv.mv_consistent_alloc(dev, size, dma_handle, flag);
+ if (sh_mv.mv_consistent_alloc) {
+ void *ret;
+
+ ret = sh_mv.mv_consistent_alloc(dev, size, dma_handle, flag);
+ if (ret != NULL)
+ return ret;
+ }