diff options
Diffstat (limited to 'arch/sparc/kernel/ioport.c')
| -rw-r--r-- | arch/sparc/kernel/ioport.c | 11 | 
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/sparc/kernel/ioport.c b/arch/sparc/kernel/ioport.c index 2096468de9b..7f08ec8a7c6 100644 --- a/arch/sparc/kernel/ioport.c +++ b/arch/sparc/kernel/ioport.c @@ -186,7 +186,7 @@ static void __iomem *_sparc_alloc_io(unsigned int busno, unsigned long phys,  	if (name == NULL) name = "???"; -	if ((xres = xres_alloc()) != 0) { +	if ((xres = xres_alloc()) != NULL) {  		tack = xres->xname;  		res = &xres->xres;  	} else { @@ -400,7 +400,7 @@ static void sbus_sync_sg_for_device(struct device *dev, struct scatterlist *sg,  	BUG();  } -struct dma_map_ops sbus_dma_ops = { +static struct dma_map_ops sbus_dma_ops = {  	.alloc			= sbus_alloc_coherent,  	.free			= sbus_free_coherent,  	.map_page		= sbus_map_page, @@ -666,10 +666,9 @@ EXPORT_SYMBOL(dma_ops);   */  int dma_supported(struct device *dev, u64 mask)  { -#ifdef CONFIG_PCI -	if (dev->bus == &pci_bus_type) +	if (dev_is_pci(dev))  		return 1; -#endif +  	return 0;  }  EXPORT_SYMBOL(dma_supported); @@ -682,7 +681,7 @@ static int sparc_io_proc_show(struct seq_file *m, void *v)  	const char *nm;  	for (r = root->child; r != NULL; r = r->sibling) { -		if ((nm = r->name) == 0) nm = "???"; +		if ((nm = r->name) == NULL) nm = "???";  		seq_printf(m, "%016llx-%016llx: %s\n",  				(unsigned long long)r->start,  				(unsigned long long)r->end, nm);  | 
