clean up dma_declare_coherent_memory calling conventions V2

From: Christoph Hellwig
Date: Sat Aug 26 2017 - 03:27:03 EST



Remove various unused flags, and return a reasonable error code.

Changes since V1:
- rebased
- fix an incorrect return value
- propagate the error value in ohci-sm501