staging: sm7xxfb: dead code removal
authorJavier M. Mellid <jmunhoz@igalia.com>
Tue, 26 Jun 2012 04:00:14 +0000 (06:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 22:03:54 +0000 (15:03 -0700)
This patch removes dead code.

Tested with SM712.

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm7xxfb/sm7xx.h
drivers/staging/sm7xxfb/sm7xxfb.c

index 43d86f8734107b11db201c403d00cb2cb115a868..333f33c3dc6685ceb20c9bdfbfb8a37c7f03b00d 100644 (file)
@@ -14,7 +14,6 @@
  */
 
 #define NR_PALETTE        256
-#define NR_RGB            2
 
 #define FB_ACCEL_SMI_LYNX 88
 
index 32111a011f6672c92f8117be8f14ad33d49d8c73..4c741e2afd126431dacceb34df7db717e2b7407a 100644 (file)
@@ -42,10 +42,6 @@ struct screen_info smtc_screen_info;
 struct smtcfb_info {
        struct fb_info fb;
        struct pci_dev *pdev;
-       struct {
-               u8 red, green, blue;
-       } palette[NR_RGB];
-       u_int palette_size;
 
        u16 chipID;
        unsigned char __iomem *m_pMMIO;