re:[PATCH] efifb: Fix call to wrong unregister function

Subsystems: framebuffer layer, the rest

6 messages, 4 authors, 2011-06-14 · open the first message on its own page

re:[PATCH] efifb: Fix call to wrong unregister function

From: wanlong.gao <hidden>
Date: 2011-06-12 10:53:04

<snip>

Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?

Signed-off-by: Wanlong Gao <redacted>
---
 drivers/video/efifb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 69c49df..784139a 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -541,7 +541,7 @@ static int __init efifb_init(void)
 	 */
 	ret = platform_driver_probe(&efifb_driver, efifb_probe);
 	if (ret) {
-		platform_device_unregister(&efifb_driver);
+		platform_device_unregister(&efifb_device);
 		return ret;
 	}
 
-- 
1.7.4.1

Re: [PATCH] efifb: Fix call to wrong unregister function

From: Maarten Lankhorst <hidden>
Date: 2011-06-12 17:48:13

Hey,

2011/6/12 wanlong.gao [off-list ref]:
<snip>

Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?
Ah yes, that seems to be the correct one, platform_driver_register was
removed. Not 100% sure if acked by or signed-off-by is appropriate
here.

Signed-off-by: Maarten Lankhorst <redacted>

~Maarten

Re: [PATCH] efifb: Fix call to wrong unregister function

From: Wanlong Gao <hidden>
Date: 2011-06-12 23:37:00

On æ—¥, 2011-06-12 at 19:48 +0200, Maarten Lankhorst wrote:
Hey,

2011/6/12 wanlong.gao [off-list ref]:
quoted
<snip>

Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?
Ah yes, that seems to be the correct one, platform_driver_register was
removed. Not 100% sure if acked by or signed-off-by is appropriate
here.
I think signed-off-by is OK.
Signed-off-by: Maarten Lankhorst <redacted>

~Maarten

Re: [PATCH] efifb: Fix call to wrong unregister function

From: Andy Lutomirski <hidden>
Date: 2011-06-13 02:55:46

On 06/12/2011 06:52 AM, wanlong.gao wrote:
quoted hunk
<snip>

Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?

Signed-off-by: Wanlong Gao<redacted>
---
  drivers/video/efifb.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 69c49df..784139a 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -541,7 +541,7 @@ static int __init efifb_init(void)
  	 */
  	ret = platform_driver_probe(&efifb_driver, efifb_probe);
  	if (ret) {
-		platform_device_unregister(&efifb_driver);
+		platform_device_unregister(&efifb_device);
  		return ret;
  	}
Acked-by: Andy Lutomirski <redacted>

That's my bug.  Sorry.  I'm not sure why it compiled, though.

--Andy

Re: [PATCH] efifb: Fix call to wrong unregister function

From: Maarten Lankhorst <hidden>
Date: 2011-06-13 07:51:34

Hi Andy,

2011/6/13 Andy Lutomirski [off-list ref]:
On 06/12/2011 06:52 AM, wanlong.gao wrote:
quoted
<snip>

Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?

Signed-off-by: Wanlong Gao<redacted>
---
 drivers/video/efifb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 69c49df..784139a 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -541,7 +541,7 @@ static int __init efifb_init(void)
        */
       ret = platform_driver_probe(&efifb_driver, efifb_probe);
       if (ret) {
-               platform_device_unregister(&efifb_driver);
+               platform_device_unregister(&efifb_device);
               return ret;
       }
Acked-by: Andy Lutomirski <redacted>

That's my bug.  Sorry.  I'm not sure why it compiled, though.
It compiled, but threw a warning. :)

~Maarten

Re: [PATCH] efifb: Fix call to wrong unregister function

From: Paul Mundt <hidden>
Date: 2011-06-14 07:33:54

On Sun, Jun 12, 2011 at 10:55:37PM -0400, Andy Lutomirski wrote:
On 06/12/2011 06:52 AM, wanlong.gao wrote:
quoted
<snip>

Hi Maarten:
It registered efifb_device but try to unregistered efifb_driver,
so I think you should fix it like this?

Signed-off-by: Wanlong Gao<redacted>
---
 drivers/video/efifb.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/video/efifb.c b/drivers/video/efifb.c
index 69c49df..784139a 100644
--- a/drivers/video/efifb.c
+++ b/drivers/video/efifb.c
@@ -541,7 +541,7 @@ static int __init efifb_init(void)
 	 */
 	ret = platform_driver_probe(&efifb_driver, efifb_probe);
 	if (ret) {
-		platform_device_unregister(&efifb_driver);
+		platform_device_unregister(&efifb_device);
 		return ret;
 	}
Acked-by: Andy Lutomirski <redacted>
Updated version applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help