microblaze: Use generic device.h
authorMichal Simek <michal.simek@xilinx.com>
Fri, 16 May 2014 11:16:49 +0000 (13:16 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 4 Jun 2014 04:59:59 +0000 (06:59 +0200)
pdev_archdata dma_mask is completely unused.
Use generic device.h

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/include/asm/Kbuild
arch/microblaze/include/asm/device.h [deleted file]
drivers/of/platform.c

index c98ed95c054185913aa3fb63dbf641d6984ba2d8..35b3ecaf25d542a58bd3ee4ddb99d88e96f63f21 100644 (file)
@@ -2,6 +2,7 @@
 generic-y += barrier.h
 generic-y += clkdev.h
 generic-y += cputime.h
+generic-y += device.h
 generic-y += exec.h
 generic-y += hash.h
 generic-y += mcs_spinlock.h
diff --git a/arch/microblaze/include/asm/device.h b/arch/microblaze/include/asm/device.h
deleted file mode 100644 (file)
index aae3b3c..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-/*
- * Arch specific extensions to struct device
- *
- * This file is subject to the terms and conditions of the GNU General Public
- * License v2. See the file "COPYING" in the main directory of this archive
- * for more details.
- */
-
-#ifndef _ASM_MICROBLAZE_DEVICE_H
-#define _ASM_MICROBLAZE_DEVICE_H
-
-struct device_node;
-
-struct dev_archdata {
-};
-
-struct pdev_archdata {
-       u64 dma_mask;
-};
-
-#endif /* _ASM_MICROBLAZE_DEVICE_H */
-
-
index bd47fbc53dc96258fba942d073ee320f25e5627f..a83b98784150271e653bab0cec82b5f73c8ac45b 100644 (file)
@@ -174,9 +174,6 @@ struct platform_device *of_device_alloc(struct device_node *np,
        }
 
        dev->dev.of_node = of_node_get(np);
-#if defined(CONFIG_MICROBLAZE)
-       dev->dev.dma_mask = &dev->archdata.dma_mask;
-#endif
        dev->dev.parent = parent;
 
        if (bus_id)