amba: check if on remove callback
Currently we get a null pointer dereference when booting linux on RPi
which use "uart-pl011" driver. This driver doesn't implement a remove
driver callback. This patch adds a check before calling the remove
callback if the driver which use the amba bus implement such
functionality.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1678dcf commit 51b0e90ec6f978bcc5ebe970acd0c62cbb341575
@Alexander Aring Alexander Aring authored on 26 Oct 2015
Sascha Hauer committed on 27 Oct 2015
Showing 1 changed file
View
drivers/amba/bus.c