sh: More cosmetic cleanups and trivial fixes.
Nothing exciting here, just trivial fixes.. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
这个提交包含在:
@@ -80,21 +80,23 @@ static irqreturn_t dma_tei(int irq, void *dev_id, struct pt_regs *regs)
|
||||
|
||||
static int sh_dmac_request_dma(struct dma_channel *chan)
|
||||
{
|
||||
char name[32];
|
||||
|
||||
if (unlikely(!chan->flags & DMA_TEI_CAPABLE))
|
||||
return 0;
|
||||
|
||||
snprintf(name, sizeof(name), "DMAC Transfer End (Channel %d)",
|
||||
chan->name = kzalloc(32, GFP_KERNEL);
|
||||
if (unlikely(chan->name == NULL))
|
||||
return -ENOMEM;
|
||||
snprintf(chan->name, 32, "DMAC Transfer End (Channel %d)",
|
||||
chan->chan);
|
||||
|
||||
return request_irq(get_dmte_irq(chan->chan), dma_tei,
|
||||
IRQF_DISABLED, name, chan);
|
||||
IRQF_DISABLED, chan->name, chan);
|
||||
}
|
||||
|
||||
static void sh_dmac_free_dma(struct dma_channel *chan)
|
||||
{
|
||||
free_irq(get_dmte_irq(chan->chan), chan);
|
||||
kfree(chan->name);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -16,6 +16,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/pci.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/titan.h>
|
||||
#include "pci-sh4.h"
|
||||
|
在新工单中引用
屏蔽一个用户