• Bartlomiej Zolnierkiewicz's avatar
    ide: add ide_host_free() helper (take 2) · 8a69580e
    Bartlomiej Zolnierkiewicz authored
    * Add ide_host_free() helper and convert ide_host_remove() to use it.
    
    * Fix handling of ide_host_register() failure in ide_host_add(),
      icside.c, ide-generic.c, falconide.c and sgiioc4.c.
    
    While at it:
    
    * Fix handling of ide_host_alloc_all() failure in ide-generic.c.
    
    * Fix handling of ide_host_alloc() failure in falconide.c
      (also return the correct error value if no device is found).
    
    v2:
    * falconide build fix. (From Stephen Rothwell)
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    8a69580e
sgiioc4.c 18.3 KB