Explorar o código

[PATCH] Mark empty release functions as broken

Come on people, this is just wrong...

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Greg Kroah-Hartman %!s(int64=19) %!d(string=hai) anos
pai
achega
972de6c8bf
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      drivers/video/epson1355fb.c
  2. 1 0
      drivers/video/vfb.c

+ 1 - 0
drivers/video/epson1355fb.c

@@ -607,6 +607,7 @@ static void clearfb16(struct fb_info *info)
 
 
 static void epson1355fb_platform_release(struct device *device)
 static void epson1355fb_platform_release(struct device *device)
 {
 {
+	dev_err(device, "This driver is broken, please bug the authors so they will fix it.\n");
 }
 }
 
 
 static int epson1355fb_remove(struct platform_device *dev)
 static int epson1355fb_remove(struct platform_device *dev)

+ 1 - 0
drivers/video/vfb.c

@@ -401,6 +401,7 @@ static int __init vfb_setup(char *options)
 static void vfb_platform_release(struct device *device)
 static void vfb_platform_release(struct device *device)
 {
 {
 	// This is called when the reference count goes to zero.
 	// This is called when the reference count goes to zero.
+	dev_err(device, "This driver is broken, please bug the authors so they will fix it.\n");
 }
 }
 
 
 static int __init vfb_probe(struct platform_device *dev)
 static int __init vfb_probe(struct platform_device *dev)