diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-05-16 06:56:53 -0400 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-06-04 00:59:55 -0400 |
commit | 3b3b6853bc9502282e7f53c117a18f20f0581fd9 (patch) | |
tree | dde2c9b49fdd4e28df0d99adc8d29711aa87d0d6 /arch/microblaze/kernel | |
parent | a44e437ac63184aaeb7cd8f76fb8907c75842f29 (diff) |
microblaze: Return default dma operations
Return Microblaze default dma operations
and remove bus notifier which setups the same dma operations
by default when device is added to the system.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/setup.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/microblaze/kernel/setup.c b/arch/microblaze/kernel/setup.c index 67cc4b282cc1..ef011295777f 100644 --- a/arch/microblaze/kernel/setup.c +++ b/arch/microblaze/kernel/setup.c | |||
@@ -229,31 +229,3 @@ static int __init debugfs_tlb(void) | |||
229 | device_initcall(debugfs_tlb); | 229 | device_initcall(debugfs_tlb); |
230 | # endif | 230 | # endif |
231 | #endif | 231 | #endif |
232 | |||
233 | static int dflt_bus_notify(struct notifier_block *nb, | ||
234 | unsigned long action, void *data) | ||
235 | { | ||
236 | struct device *dev = data; | ||
237 | |||
238 | /* We are only intereted in device addition */ | ||
239 | if (action != BUS_NOTIFY_ADD_DEVICE) | ||
240 | return 0; | ||
241 | |||
242 | set_dma_ops(dev, &dma_direct_ops); | ||
243 | |||
244 | return NOTIFY_DONE; | ||
245 | } | ||
246 | |||
247 | static struct notifier_block dflt_plat_bus_notifier = { | ||
248 | .notifier_call = dflt_bus_notify, | ||
249 | .priority = INT_MAX, | ||
250 | }; | ||
251 | |||
252 | static int __init setup_bus_notifier(void) | ||
253 | { | ||
254 | bus_register_notifier(&platform_bus_type, &dflt_plat_bus_notifier); | ||
255 | |||
256 | return 0; | ||
257 | } | ||
258 | |||
259 | arch_initcall(setup_bus_notifier); | ||