]> err.no Git - linux-2.6/blobdiff - drivers/base/platform.c
[SCSI] libata: implement minimal transport template for ->eh_timed_out
[linux-2.6] / drivers / base / platform.c
index 0f81731bdfa8122aeccfc439907533cfd3fc98ba..89b268321321bf3e7695e88fe18412f24f87d0bf 100644 (file)
@@ -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);
 
-       return r ? r->start : 0;
+       return r ? r->start : -ENXIO;
 }
 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);
 
-       return r ? r->start : 0;
+       return r ? r->start : -ENXIO;
 }
 EXPORT_SYMBOL_GPL(platform_get_irq_byname);
 
@@ -327,7 +327,7 @@ EXPORT_SYMBOL_GPL(platform_device_register);
  *     @pdev:  platform device we're unregistering
  *
  *     Unregistration is done in 2 steps. Fisrt we release all resources
- *     and remove it from the sybsystem, then we drop reference count by
+ *     and remove it from the subsystem, then we drop reference count by
  *     calling platform_device_put().
  */
 void platform_device_unregister(struct platform_device * pdev)