Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 114789
b: refs/heads/master
c: 62f9e8f
h: refs/heads/master
i:
  114787: e26b5c6
v: v3
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed Oct 16, 2008
1 parent 54c094f commit c9a3b53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 56 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bf2a9a39639b8b51377905397a5005f444e9a892
refs/heads/master: 62f9e8f15a95822e0a793090ff69b277690c6aa6
55 changes: 0 additions & 55 deletions trunk/drivers/spi/mpc52xx_psc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,7 @@
#include <linux/init.h>
#include <linux/errno.h>
#include <linux/interrupt.h>

#if defined(CONFIG_PPC_MERGE)
#include <linux/of_platform.h>
#else
#include <linux/platform_device.h>
#endif

#include <linux/workqueue.h>
#include <linux/completion.h>
#include <linux/io.h>
Expand Down Expand Up @@ -471,53 +465,6 @@ static int __exit mpc52xx_psc_spi_do_remove(struct device *dev)
return 0;
}

#if !defined(CONFIG_PPC_MERGE)
static int __init mpc52xx_psc_spi_probe(struct platform_device *dev)
{
switch(dev->id) {
case 1:
case 2:
case 3:
case 6:
return mpc52xx_psc_spi_do_probe(&dev->dev,
MPC52xx_PA(MPC52xx_PSCx_OFFSET(dev->id)),
MPC52xx_PSC_SIZE, platform_get_irq(dev, 0), dev->id);
default:
return -EINVAL;
}
}

static int __exit mpc52xx_psc_spi_remove(struct platform_device *dev)
{
return mpc52xx_psc_spi_do_remove(&dev->dev);
}

/* work with hotplug and coldplug */
MODULE_ALIAS("platform:mpc52xx-psc-spi");

static struct platform_driver mpc52xx_psc_spi_platform_driver = {
.remove = __exit_p(mpc52xx_psc_spi_remove),
.driver = {
.name = "mpc52xx-psc-spi",
.owner = THIS_MODULE,
},
};

static int __init mpc52xx_psc_spi_init(void)
{
return platform_driver_probe(&mpc52xx_psc_spi_platform_driver,
mpc52xx_psc_spi_probe);
}
module_init(mpc52xx_psc_spi_init);

static void __exit mpc52xx_psc_spi_exit(void)
{
platform_driver_unregister(&mpc52xx_psc_spi_platform_driver);
}
module_exit(mpc52xx_psc_spi_exit);

#else /* defined(CONFIG_PPC_MERGE) */

static int __init mpc52xx_psc_spi_of_probe(struct of_device *op,
const struct of_device_id *match)
{
Expand Down Expand Up @@ -586,8 +533,6 @@ static void __exit mpc52xx_psc_spi_exit(void)
}
module_exit(mpc52xx_psc_spi_exit);

#endif /* defined(CONFIG_PPC_MERGE) */

MODULE_AUTHOR("Dragos Carp");
MODULE_DESCRIPTION("MPC52xx PSC SPI Driver");
MODULE_LICENSE("GPL");

0 comments on commit c9a3b53

Please sign in to comment.