Emil Goode 42eb317f7d grvga: Fix error handling issues
This patch fixes two problems with the error handling in the
grvga_probe function and simplifies it making the code
easier to read.

- If the call to grvga_parse_custom on line 370 fails we use
  the wrong label so that release_mem_region will be called
  without a call to request_mem_region being made.

- If the call to ioremap on line 436 fails we should not try
  to call iounmap in the error handling code.

This patch introduces the following changes:

- Converts request_mem_region into its devm_ equivalent
  which simplifies the otherwise messy clean up code.

- Changes the labels for correct error handling and their
  names to make the code easier to read.

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
2012-07-08 14:03:17 +00:00
..
2012-06-16 16:59:05 -07:00
2012-06-16 16:59:05 -07:00
2012-04-08 14:27:08 +00:00
2011-07-26 16:49:47 -07:00
2012-03-28 18:30:03 +01:00
2011-10-03 15:52:38 +00:00
2012-04-08 14:27:09 +00:00
2012-01-28 20:50:11 +00:00
2012-01-28 20:50:11 +00:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2012-03-28 18:30:03 +01:00
2009-01-12 20:56:32 +01:00
2008-07-24 10:47:34 -07:00
2012-03-28 18:30:03 +01:00
2012-04-24 09:50:21 +01:00
2009-05-06 16:36:10 -07:00
2011-09-01 00:31:05 +00:00
2011-03-22 16:18:51 +09:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2012-07-08 14:03:17 +00:00
2010-05-25 08:07:09 -07:00
2011-03-22 16:07:32 +09:00
2012-02-15 04:31:21 +00:00
2011-09-27 18:08:04 +02:00
2012-01-22 14:50:02 +01:00
2010-02-27 18:31:14 +01:00
2011-09-14 16:40:52 +00:00
2012-06-01 16:57:51 -07:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2011-10-03 15:52:22 +00:00
2012-03-28 18:30:03 +01:00
2010-12-21 01:05:43 +09:00
2011-12-21 02:25:21 +00:00
2010-05-25 08:07:09 -07:00
2011-03-31 11:26:23 -03:00
2010-06-16 18:05:05 +02:00
2011-10-03 15:52:22 +00:00
2012-06-01 16:57:51 -07:00
2011-06-24 17:14:39 +09:00
2010-02-27 18:31:13 +01:00
2011-07-04 16:02:48 +09:00