]> git.sur5r.net Git - u-boot/blobdiff - drivers/dma/dma-uclass.c
Merge branch 'master' of git://git.denx.de/u-boot-usb
[u-boot] / drivers / dma / dma-uclass.c
index ea21fd9c6febdc0b08064419cbc178805ea09250..a33f7d52dace3b6824f51a6f6aa2e350c65ffa73 100644 (file)
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Direct Memory Access U-Class driver
  *
@@ -5,8 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  *
  * Author: Mugunthan V N <mugunthanvnm@ti.com>
- *
- * SPDX-License-Identifier:     GPL-2.0+
  */
 
 #include <common.h>
@@ -16,8 +15,6 @@
 #include <dm/device-internal.h>
 #include <errno.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 int dma_get_device(u32 transfer_type, struct udevice **devp)
 {
        struct udevice *dev;
@@ -33,7 +30,7 @@ int dma_get_device(u32 transfer_type, struct udevice **devp)
        }
 
        if (!dev) {
-               error("No DMA device found that supports %x type\n",
+               pr_err("No DMA device found that supports %x type\n",
                      transfer_type);
                return -EPROTONOSUPPORT;
        }