• Bartlomiej Zolnierkiewicz's avatar
    [ide] propagation of error code in PCI IDE setup · 85cb671e
    Bartlomiej Zolnierkiewicz authored
    - Change the return value and the prototype of do_ide_setup_pci_device
      Due to lack of appropriate return status code, the current clients of
      do_ide_setup_pci_device() can not distinguish a failing invocation
      from a successfull one. The patch modify do_ide_setup_pci_device() so
      that it can propagate some of the errors from the lower layers.
    
    - Make ide_setup_pci_device() aware of the change and propagate the news
      itself. I only gave a quick sight to create_proc_ide_interfaces() (and
      ide_remove_proc_entries()) but they do seem sane and it should not matter
      if it fails or not.
    
    - ide_setup_pci_devices(): mostly the same thing than ide_setup_pci_device().
      do not look trivially suspect.
    Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    85cb671e
setup-pci.c 23.3 KB