clean up dma_declare_coherent_memory calling conventions V2

Christoph Hellwig
2017-08-26T07:26:59Z

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