mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Merge branch 'topic/sa11x0' into for-linus
This commit is contained in:
commit
56e8e1a118
2 changed files with 8 additions and 37 deletions
|
|
@ -17,7 +17,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/sa11x0-dma.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
|
|
@ -830,6 +829,14 @@ static const struct dma_slave_map sa11x0_dma_map[] = {
|
|||
{ "sa11x0-ssp", "rx", "Ser4SSPRc" },
|
||||
};
|
||||
|
||||
static bool sa11x0_dma_filter_fn(struct dma_chan *chan, void *param)
|
||||
{
|
||||
struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan);
|
||||
const char *p = param;
|
||||
|
||||
return !strcmp(c->name, p);
|
||||
}
|
||||
|
||||
static int sa11x0_dma_init_dmadev(struct dma_device *dmadev,
|
||||
struct device *dev)
|
||||
{
|
||||
|
|
@ -1087,18 +1094,6 @@ static struct platform_driver sa11x0_dma_driver = {
|
|||
.remove = sa11x0_dma_remove,
|
||||
};
|
||||
|
||||
bool sa11x0_dma_filter_fn(struct dma_chan *chan, void *param)
|
||||
{
|
||||
if (chan->device->dev->driver == &sa11x0_dma_driver.driver) {
|
||||
struct sa11x0_dma_chan *c = to_sa11x0_dma_chan(chan);
|
||||
const char *p = param;
|
||||
|
||||
return !strcmp(c->name, p);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
EXPORT_SYMBOL(sa11x0_dma_filter_fn);
|
||||
|
||||
static int __init sa11x0_dma_init(void)
|
||||
{
|
||||
return platform_driver_register(&sa11x0_dma_driver);
|
||||
|
|
|
|||
Loading…
Reference in a new issue