From: Tomi Valkeinen Date: Wed, 2 Apr 2014 11:31:50 +0000 (+0300) Subject: drm/omap: fix DMM driver (un)registration X-Git-Tag: omap-for-v3.16/soc-signed~40^2~8^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea7e3a662814447cd329390feddd04b9ec0a4b82;p=pandora-kernel.git drm/omap: fix DMM driver (un)registration At the moment the DMM driver is never unregistered, even if it's registered in the omapdrm module's init function. This means we'll get errors when reloading the omapdrm module. Fix this by unregistering the DMM driver properly, and also change the module init to fail if DMM driver cannot be registered, simplifying the unregister path as we don't need to keep the state whether we registered the DMM driver or not. Signed-off-by: Tomi Valkeinen Reviewed-by: Rob Clark --- Reading git-diff-tree failed