|
|
@@ -201,7 +201,7 @@ static void lp55xx_firmware_loaded(const struct firmware *fw, void *context)
|
|
|
|
|
|
if (!fw) {
|
|
|
dev_err(dev, "firmware request failed\n");
|
|
|
- goto out;
|
|
|
+ return;
|
|
|
}
|
|
|
|
|
|
/* handling firmware data is chip dependent */
|
|
|
@@ -214,9 +214,9 @@ static void lp55xx_firmware_loaded(const struct firmware *fw, void *context)
|
|
|
|
|
|
mutex_unlock(&chip->lock);
|
|
|
|
|
|
-out:
|
|
|
/* firmware should be released for other channel use */
|
|
|
release_firmware(chip->fw);
|
|
|
+ chip->fw = NULL;
|
|
|
}
|
|
|
|
|
|
static int lp55xx_request_firmware(struct lp55xx_chip *chip)
|