Skip to content

Commit

Permalink
mailbox: arm_mhuv2: make remove callback return void
Browse files Browse the repository at this point in the history
My build tests failed to catch that amba driver that would have needed
adaption in commit 3fd269e ("amba: Make the remove callback return
void"). Change the remove function to make the driver build again.

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 3fd269e ("amba: Make the remove callback return void")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
  • Loading branch information
Uwe Kleine-König authored and JassiBrar committed Feb 15, 2021
1 parent af59bcf commit 09d1215
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/mailbox/arm_mhuv2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1095,14 +1095,12 @@ static int mhuv2_probe(struct amba_device *adev, const struct amba_id *id)
return ret;
}

static int mhuv2_remove(struct amba_device *adev)
static void mhuv2_remove(struct amba_device *adev)
{
struct mhuv2 *mhu = amba_get_drvdata(adev);

if (mhu->frame == SENDER_FRAME)
writel_relaxed(0x0, &mhu->send->access_request);

return 0;
}

static struct amba_id mhuv2_ids[] = {
Expand Down

0 comments on commit 09d1215

Please sign in to comment.