• Florian Fainelli's avatar
    reset: brcmstb: Remove resource checks · ce89d8d3
    Florian Fainelli authored
    The use of IS_ALIGNED() is incorrect, the typical resource we pass looks
    like this: start: 0x8404318, size: 0x30. When using IS_ALIGNED() we will
    get the following 0x8404318 & (0x18 - 1) = 0x10 which is definitively
    not equal to 0, same goes with the size. These two checks would make the
    driver fail probing.
    
    Remove the resource checks, since there should be no constraint on the
    base addresse or size.
    
    Fixes: 77750bc0 ("reset: Add Broadcom STB SW_INIT reset controller driver")
    Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: default avatarPhilipp Zabel <p.zabel@pengutronix.de>
    ce89d8d3
reset-brcmstb.c 3.28 KB