maple: fix up whitespace damage.

This patch is fundamentally about fixing up the whitespace problems
introduced by my previous patch (that brought the code into mainline). A
second patch will follow that will fix memory leaks. The two need to be
applied sequentially.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Adrian McMenamin 2008-02-06 22:46:21 +00:00 committed by Paul Mundt
parent 86c0179c93
commit b948237891
2 changed files with 496 additions and 489 deletions

View File

@ -73,6 +73,7 @@ int maple_driver_register(struct device_driver *drv)
drv->bus = &maple_bus_type;
return driver_register(drv);
}
EXPORT_SYMBOL_GPL(maple_driver_register);
/* set hardware registers to enable next round of dma */
@ -102,6 +103,7 @@ void maple_getcond_callback(struct maple_device *dev,
dev->function = cpu_to_be32(function);
dev->when = jiffies;
}
EXPORT_SYMBOL_GPL(maple_getcond_callback);
static int maple_dma_done(void)
@ -127,6 +129,7 @@ void maple_add_packet(struct mapleq *mq)
list_add(&mq->list, &maple_waitq);
mutex_unlock(&maple_list_lock);
}
EXPORT_SYMBOL_GPL(maple_add_packet);
static struct mapleq *maple_allocq(struct maple_device *dev)
@ -601,7 +604,8 @@ static int match_maple_bus_driver(struct device *devptr,
return 0;
}
static int maple_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
static int maple_bus_uevent(struct device *dev,
struct kobj_uevent_env *env)
{
return 0;
}
@ -622,6 +626,7 @@ struct bus_type maple_bus_type = {
.match = match_maple_bus_driver,
.uevent = maple_bus_uevent,
};
EXPORT_SYMBOL_GPL(maple_bus_type);
static struct device maple_bus = {
@ -706,29 +711,30 @@ static int __init maple_bus_init(void)
return 0;
cleanup_cache:
cleanup_cache:
kmem_cache_destroy(maple_queue_cache);
cleanup_bothirqs:
cleanup_bothirqs:
free_irq(HW_EVENT_VSYNC, 0);
cleanup_irq:
cleanup_irq:
free_irq(HW_EVENT_MAPLE_DMA, 0);
cleanup_dma:
cleanup_dma:
free_pages((unsigned long) maple_sendbuf, MAPLE_DMA_PAGES);
cleanup_basic:
cleanup_basic:
driver_unregister(&maple_dummy_driver.drv);
cleanup_bus:
cleanup_bus:
bus_unregister(&maple_bus_type);
cleanup_device:
cleanup_device:
device_unregister(&maple_bus);
cleanup:
cleanup:
printk(KERN_INFO "Maple bus registration failed\n");
return retval;
}
subsys_initcall(maple_bus_init);

View File

@ -65,6 +65,7 @@ struct maple_driver {
int (*connect) (struct maple_device * dev);
void (*disconnect) (struct maple_device * dev);
struct device_driver drv;
int registered;
};
void maple_getcond_callback(struct maple_device *dev,