• Ming Lei's avatar
    firmware loader: fix creation failure of fw loader device · 99c2aa72
    Ming Lei authored
    If one device driver calls request_firmware_nowait() to request
    several different firmwares' loading, device_add() will return
    failure since all firmware loader device use same name of the
    device who is requesting firmware.
    
    This patch always use the name of firmware image as the firmware
    loader device name to fix the problem since the following patches
    for caching firmware will make sure only one loading for same
    firmware is alllowd at the same time.
    Signed-off-by: default avatarMing Lei <ming.lei@canonical.com>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    99c2aa72
firmware_class.c 18.1 KB