mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
drivers: llcc: Allow configurations with no broadcast hardware
Previous iterations of the llcc driver did not account for caches with no llcc broadcast hardware. This fixes this issue. Change-Id: I221d0d65d17c34645cd1a4070737fe9bebfa4b16 Signed-off-by: Melody Olvera <molvera@codeaurora.org>
This commit is contained in:
parent
ccbf386326
commit
f7101cee8b
1 changed files with 4 additions and 1 deletions
|
|
@ -392,7 +392,10 @@ int qcom_llcc_probe(struct platform_device *pdev,
|
|||
|
||||
drv_data->bcast_regmap =
|
||||
qcom_llcc_init_mmio(pdev, "llcc_broadcast_base");
|
||||
if (IS_ERR(drv_data->bcast_regmap)) {
|
||||
|
||||
if (PTR_ERR(drv_data->bcast_regmap) == -ENODEV)
|
||||
drv_data->bcast_regmap = drv_data->regmap;
|
||||
else if (IS_ERR(drv_data->bcast_regmap)) {
|
||||
ret = PTR_ERR(drv_data->bcast_regmap);
|
||||
goto err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue