Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts: drivers/firmware/iscsi_ibft.c
This commit is contained in:
@@ -39,7 +39,6 @@
|
||||
#include "mace.h"
|
||||
|
||||
static char mac_mace_string[] = "macmace";
|
||||
static struct platform_device *mac_mace_device;
|
||||
|
||||
#define N_TX_BUFF_ORDER 0
|
||||
#define N_TX_RING (1 << N_TX_BUFF_ORDER)
|
||||
@@ -752,6 +751,7 @@ static irqreturn_t mace_dma_intr(int irq, void *dev_id)
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_DESCRIPTION("Macintosh MACE ethernet driver");
|
||||
MODULE_ALIAS("platform:macmace");
|
||||
|
||||
static int __devexit mac_mace_device_remove (struct platform_device *pdev)
|
||||
{
|
||||
@@ -777,47 +777,22 @@ static struct platform_driver mac_mace_driver = {
|
||||
.probe = mace_probe,
|
||||
.remove = __devexit_p(mac_mace_device_remove),
|
||||
.driver = {
|
||||
.name = mac_mace_string,
|
||||
.name = mac_mace_string,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
static int __init mac_mace_init_module(void)
|
||||
{
|
||||
int err;
|
||||
|
||||
if (!MACH_IS_MAC)
|
||||
return -ENODEV;
|
||||
|
||||
if ((err = platform_driver_register(&mac_mace_driver))) {
|
||||
printk(KERN_ERR "Driver registration failed\n");
|
||||
return err;
|
||||
}
|
||||
|
||||
mac_mace_device = platform_device_alloc(mac_mace_string, 0);
|
||||
if (!mac_mace_device)
|
||||
goto out_unregister;
|
||||
|
||||
if (platform_device_add(mac_mace_device)) {
|
||||
platform_device_put(mac_mace_device);
|
||||
mac_mace_device = NULL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
out_unregister:
|
||||
platform_driver_unregister(&mac_mace_driver);
|
||||
|
||||
return -ENOMEM;
|
||||
return platform_driver_register(&mac_mace_driver);
|
||||
}
|
||||
|
||||
static void __exit mac_mace_cleanup_module(void)
|
||||
{
|
||||
platform_driver_unregister(&mac_mace_driver);
|
||||
|
||||
if (mac_mace_device) {
|
||||
platform_device_unregister(mac_mace_device);
|
||||
mac_mace_device = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
module_init(mac_mace_init_module);
|
||||
|
Reference in New Issue
Block a user