microblaze: Use generic device.h
pdev_archdata dma_mask is completely unused. Use generic device.h Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
6b3f246e39
commit
bf5db2fbd6
@ -2,6 +2,7 @@
|
|||||||
generic-y += barrier.h
|
generic-y += barrier.h
|
||||||
generic-y += clkdev.h
|
generic-y += clkdev.h
|
||||||
generic-y += cputime.h
|
generic-y += cputime.h
|
||||||
|
generic-y += device.h
|
||||||
generic-y += exec.h
|
generic-y += exec.h
|
||||||
generic-y += hash.h
|
generic-y += hash.h
|
||||||
generic-y += mcs_spinlock.h
|
generic-y += mcs_spinlock.h
|
||||||
|
@ -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 */
|
|
||||||
|
|
||||||
|
|
@ -174,9 +174,6 @@ struct platform_device *of_device_alloc(struct device_node *np,
|
|||||||
}
|
}
|
||||||
|
|
||||||
dev->dev.of_node = of_node_get(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;
|
dev->dev.parent = parent;
|
||||||
|
|
||||||
if (bus_id)
|
if (bus_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user