Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7101cee authored by Melody Olvera's avatar Melody Olvera
Browse files

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: default avatarMelody Olvera <molvera@codeaurora.org>
parent ccbf3863
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;
	}