diff options
Diffstat (limited to 'drivers/base/platform.c')
| -rw-r--r-- | drivers/base/platform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/platform.c b/drivers/base/platform.c index 461554a02517..83f5c5984d1a 100644 --- 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) | |||
| 61 | { | 61 | { |
| 62 | struct resource *r = platform_get_resource(dev, IORESOURCE_IRQ, num); | 62 | struct resource *r = platform_get_resource(dev, IORESOURCE_IRQ, num); |
| 63 | 63 | ||
| 64 | return r ? r->start : 0; | 64 | return r ? r->start : -ENXIO; |
| 65 | } | 65 | } |
| 66 | EXPORT_SYMBOL_GPL(platform_get_irq); | 66 | EXPORT_SYMBOL_GPL(platform_get_irq); |
| 67 | 67 | ||
| @@ -98,7 +98,7 @@ int platform_get_irq_byname(struct platform_device *dev, char *name) | |||
| 98 | { | 98 | { |
| 99 | struct resource *r = platform_get_resource_byname(dev, IORESOURCE_IRQ, name); | 99 | struct resource *r = platform_get_resource_byname(dev, IORESOURCE_IRQ, name); |
| 100 | 100 | ||
| 101 | return r ? r->start : 0; | 101 | return r ? r->start : -ENXIO; |
| 102 | } | 102 | } |
| 103 | EXPORT_SYMBOL_GPL(platform_get_irq_byname); | 103 | EXPORT_SYMBOL_GPL(platform_get_irq_byname); |
| 104 | 104 | ||
| @@ -326,7 +326,7 @@ EXPORT_SYMBOL_GPL(platform_device_register); | |||
| 326 | * platform_device_unregister - unregister a platform-level device | 326 | * platform_device_unregister - unregister a platform-level device |
| 327 | * @pdev: platform device we're unregistering | 327 | * @pdev: platform device we're unregistering |
| 328 | * | 328 | * |
| 329 | * Unregistration is done in 2 steps. Fisrt we release all resources | 329 | * Unregistration is done in 2 steps. First we release all resources |
| 330 | * and remove it from the subsystem, then we drop reference count by | 330 | * and remove it from the subsystem, then we drop reference count by |
| 331 | * calling platform_device_put(). | 331 | * calling platform_device_put(). |
| 332 | */ | 332 | */ |
