dma_resv: prime lockdep annotations
authorSteven Price <steven.price@arm.com>
Mon, 11 Nov 2019 13:11:20 +0000 (13:11 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 20 Nov 2019 10:52:05 +0000 (11:52 +0100)
commitffbbaa7420f7a7ee6d547cd9adc286fe2e3753e0
treea146a56d7bfc84e66cf4de04012e8d5e2d0517f1
parentbe14312472e93d0c9c8c3ea8ef7d4eb59ed73f8f
dma_resv: prime lockdep annotations

From d07ea81611ed6e4fb8cc290f42d23dbcca2da2f8 Mon Sep 17 00:00:00 2001
From: Steven Price <steven.price@arm.com>
Date: Mon, 11 Nov 2019 13:07:19 +0000
Subject: [PATCH] dma_resv: Correct return type of dma_resv_lockdep()

subsys_initcall() expects a function which returns 'int'. Fix
dma_resv_lockdep() so it returns an 'int' error code.

Fixes: b2a8116e2592 ("dma_resv: prime lockdep annotations")
Signed-off-by: Steven Price <steven.price@arm.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/c0a0c70d-e6fe-1103-2888-1ce1425f4a5d@arm.com
drivers/dma-buf/dma-resv.c