clean up dma_declare_coherent_memory calling conventions

From: Christoph Hellwig
Date: Tue Jun 27 2017 - 16:17:49 EST


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