Commit 02aad32c authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Benjamin Herrenschmidt

ps3fb: Remove useless debug checks in ps3fb_shutdown()

Signed-off-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: linux-fbdev-devel@lists.sourceforge.net
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 3273d877
...@@ -1247,7 +1247,6 @@ static int __devinit ps3fb_probe(struct ps3_system_bus_device *dev) ...@@ -1247,7 +1247,6 @@ static int __devinit ps3fb_probe(struct ps3_system_bus_device *dev)
static int ps3fb_shutdown(struct ps3_system_bus_device *dev) static int ps3fb_shutdown(struct ps3_system_bus_device *dev)
{ {
int status;
struct fb_info *info = dev->core.driver_data; struct fb_info *info = dev->core.driver_data;
dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__); dev_dbg(&dev->core, " -> %s:%d\n", __func__, __LINE__);
...@@ -1271,17 +1270,8 @@ static int ps3fb_shutdown(struct ps3_system_bus_device *dev) ...@@ -1271,17 +1270,8 @@ static int ps3fb_shutdown(struct ps3_system_bus_device *dev)
info = dev->core.driver_data = NULL; info = dev->core.driver_data = NULL;
} }
iounmap((u8 __force __iomem *)ps3fb.dinfo); iounmap((u8 __force __iomem *)ps3fb.dinfo);
lv1_gpu_context_free(ps3fb.context_handle);
status = lv1_gpu_context_free(ps3fb.context_handle); lv1_gpu_memory_free(ps3fb.memory_handle);
if (status)
dev_dbg(&dev->core, "lv1_gpu_context_free failed: %d\n",
status);
status = lv1_gpu_memory_free(ps3fb.memory_handle);
if (status)
dev_dbg(&dev->core, "lv1_gpu_memory_free failed: %d\n",
status);
ps3_close_hv_device(dev); ps3_close_hv_device(dev);
dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__); dev_dbg(&dev->core, " <- %s:%d\n", __func__, __LINE__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment