|
From: <bal...@us...> - 2007-03-19 23:33:07
|
Revision: 925
http://svn.sourceforge.net/hackndev/?rev=925&view=rev
Author: balrog-kun
Date: 2007-03-19 16:14:21 -0700 (Mon, 19 Mar 2007)
Log Message:
-----------
LD: convert palmld_ide to platform_device (this is 2007!)
Modified Paths:
--------------
linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c
Modified: linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c
===================================================================
--- linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c 2007-03-19 20:19:05 UTC (rev 924)
+++ linux4palm/linux/trunk/arch/arm/mach-pxa/palmld/palmld_ide.c 2007-03-19 23:14:21 UTC (rev 925)
@@ -14,7 +14,7 @@
#include <asm/arch/pxa-regs.h>
#include <asm/arch/palmld-gpio.h>
-static int palmld_ide_probe(struct device *dev)
+static int palmld_ide_probe(struct platform_device *dev)
{
hw_regs_t hw;
int *hd = NULL;
@@ -43,14 +43,14 @@
return -ENODEV;
}
- dev_set_drvdata(dev, hd);
+ platform_set_drvdata(dev, hd);
return 0;
}
-static int palmld_ide_remove(struct device *dev)
+static int palmld_ide_remove(struct platform_device *dev)
{
- int *hd = dev_get_drvdata(dev);
+ int *hd = platform_get_drvdata(dev);
if(hd) {
ide_unregister(*hd);
@@ -62,9 +62,11 @@
return 0;
}
-static struct device_driver palmld_ide_driver = {
- .name = "palmld-ide",
- .bus = &platform_bus_type,
+static struct platform_driver palmld_ide_driver = {
+ .driver = {
+ .name = "palmld-ide",
+ .owner = THIS_MODULE,
+ },
.probe = palmld_ide_probe,
.remove = palmld_ide_remove,
.suspend= NULL,
@@ -73,12 +75,12 @@
static int __init palmld_ide_init(void)
{
- return driver_register(&palmld_ide_driver);
+ return platform_driver_register(&palmld_ide_driver);
}
static void __exit palmld_ide_exit(void)
{
- driver_unregister(&palmld_ide_driver);
+ platform_driver_unregister(&palmld_ide_driver);
}
module_init(palmld_ide_init);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|