git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git]
/
drivers
/
base
/
platform.c
diff --git
a/drivers/base/platform.c
b/drivers/base/platform.c
index
83f5c59
..
461554a
100644
(file)
--- a/
drivers/base/platform.c
+++ b/
drivers/base/platform.c
@@
-61,7
+61,7
@@
int platform_get_irq(struct platform_device *dev, unsigned int num)
{
struct resource *r = platform_get_resource(dev, IORESOURCE_IRQ, num);
{
struct resource *r = platform_get_resource(dev, IORESOURCE_IRQ, num);
- return r ? r->start :
-ENXIO
;
+ return r ? r->start :
0
;
}
EXPORT_SYMBOL_GPL(platform_get_irq);
}
EXPORT_SYMBOL_GPL(platform_get_irq);
@@
-98,7
+98,7
@@
int platform_get_irq_byname(struct platform_device *dev, char *name)
{
struct resource *r = platform_get_resource_byname(dev, IORESOURCE_IRQ, name);
{
struct resource *r = platform_get_resource_byname(dev, IORESOURCE_IRQ, name);
- return r ? r->start :
-ENXIO
;
+ return r ? r->start :
0
;
}
EXPORT_SYMBOL_GPL(platform_get_irq_byname);
}
EXPORT_SYMBOL_GPL(platform_get_irq_byname);
@@
-326,7
+326,7
@@
EXPORT_SYMBOL_GPL(platform_device_register);
* platform_device_unregister - unregister a platform-level device
* @pdev: platform device we're unregistering
*
* platform_device_unregister - unregister a platform-level device
* @pdev: platform device we're unregistering
*
- * Unregistration is done in 2 steps. Fi
rs
t we release all resources
+ * Unregistration is done in 2 steps. Fi
sr
t we release all resources
* and remove it from the subsystem, then we drop reference count by
* calling platform_device_put().
*/
* and remove it from the subsystem, then we drop reference count by
* calling platform_device_put().
*/