* [PATCHv2 3/3] Staging: xgifb: Remove unused function fbcon_XGI_sync
@ 2011-02-21 17:44 Javier Martinez Canillas
2011-02-21 20:31 ` [PATCHv2 3/3] Staging: xgifb: Remove unused function Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Javier Martinez Canillas @ 2011-02-21 17:44 UTC (permalink / raw)
To: kernel-janitors
Due a cleanup in earlier patches, the function fbcon_XGI_sync now does nothing
so it has to be removed.
This patches removes the unused function.
Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
---
v2: Remove the .fb_sync member instead of explicitly set it to NULL
suggested by Dan Carpenter.
drivers/staging/xgifb/XGI_accel.c | 5 -----
drivers/staging/xgifb/XGI_main.h | 1 -
drivers/staging/xgifb/XGI_main_26.c | 1 -
3 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/xgifb/XGI_accel.c b/drivers/staging/xgifb/XGI_accel.c
index 7c69e07..905b34a 100644
--- a/drivers/staging/xgifb/XGI_accel.c
+++ b/drivers/staging/xgifb/XGI_accel.c
@@ -115,11 +115,6 @@ void XGIfb_syncaccel(void)
}
-int fbcon_XGI_sync(struct fb_info *info)
-{
- return 0;
-}
-
void fbcon_XGI_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
{
if (!rect->width || !rect->height)
diff --git a/drivers/staging/xgifb/XGI_main.h b/drivers/staging/xgifb/XGI_main.h
index e8e2bfe..1b45414 100644
--- a/drivers/staging/xgifb/XGI_main.h
+++ b/drivers/staging/xgifb/XGI_main.h
@@ -797,7 +797,6 @@ extern void fbcon_XGI_fillrect(struct fb_info *info,
const struct fb_fillrect *rect);
extern void fbcon_XGI_copyarea(struct fb_info *info,
const struct fb_copyarea *area);
-extern int fbcon_XGI_sync(struct fb_info *info);
static int XGIfb_ioctl(struct fb_info *info, unsigned int cmd,
unsigned long arg);
diff --git a/drivers/staging/xgifb/XGI_main_26.c b/drivers/staging/xgifb/XGI_main_26.c
index b52e11f..c77ac4a 100644
--- a/drivers/staging/xgifb/XGI_main_26.c
+++ b/drivers/staging/xgifb/XGI_main_26.c
@@ -1741,7 +1741,6 @@ static struct fb_ops XGIfb_ops = {
.fb_fillrect = fbcon_XGI_fillrect,
.fb_copyarea = fbcon_XGI_copyarea,
.fb_imageblit = cfb_imageblit,
- .fb_sync = fbcon_XGI_sync,
.fb_ioctl = XGIfb_ioctl,
/* .fb_mmap = XGIfb_mmap, */
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCHv2 3/3] Staging: xgifb: Remove unused function
2011-02-21 17:44 [PATCHv2 3/3] Staging: xgifb: Remove unused function fbcon_XGI_sync Javier Martinez Canillas
@ 2011-02-21 20:31 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2011-02-21 20:31 UTC (permalink / raw)
To: kernel-janitors
On Mon, Feb 21, 2011 at 06:44:35PM +0100, Javier Martinez Canillas wrote:
> Due a cleanup in earlier patches, the function fbcon_XGI_sync now does nothing
> so it has to be removed.
>
> This patches removes the unused function.
>
> Signed-off-by: Javier Martinez Canillas <martinez.javier@gmail.com>
Thanks for doing that. All three look good.
Acked-by: Dan Carpenter <error27@gmail.com>
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-02-21 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-21 17:44 [PATCHv2 3/3] Staging: xgifb: Remove unused function fbcon_XGI_sync Javier Martinez Canillas
2011-02-21 20:31 ` [PATCHv2 3/3] Staging: xgifb: Remove unused function Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox