Skip to content

Commit 2a0fd0a

Browse files
committed
ARM: pxa: stop using mach/bitfield.h
There are two identical copies of mach/bitfield.h, one for mach-sa1100 and one for mach-pxa. The pxafb driver only makes use of two macros, which can be trivially open-coded in the header. Cc: [email protected] Acked-by: Bartlomiej Zolnierkiewicz <[email protected]> Acked-by: Robert Jarzmik <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent 08d3df8 commit 2a0fd0a

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

arch/arm/mach-pxa/idp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "pxa25x.h"
3131
#include "idp.h"
3232
#include <linux/platform_data/video-pxafb.h>
33-
#include <mach/bitfield.h>
3433
#include <linux/platform_data/mmc-pxamci.h>
3534
#include <linux/smc91x.h>
3635

arch/arm/mach-pxa/include/mach/regs-lcd.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#ifndef __ASM_ARCH_REGS_LCD_H
33
#define __ASM_ARCH_REGS_LCD_H
44

5-
#include <mach/bitfield.h>
6-
75
/*
86
* LCD Controller Registers and Bits Definitions
97
*/
@@ -86,6 +84,9 @@
8684
#define LCCR0_OUC (1 << 25) /* Overlay Underlay control bit */
8785
#define LCCR0_LDDALT (1 << 26) /* LDD alternate mapping control */
8886

87+
#define Fld(Size, Shft) (((Size) << 16) + (Shft))
88+
#define FShft(Field) ((Field) & 0x0000FFFF)
89+
8990
#define LCCR1_PPL Fld (10, 0) /* Pixels Per Line - 1 */
9091
#define LCCR1_DisWdth(Pixel) (((Pixel) - 1) << FShft (LCCR1_PPL))
9192

arch/arm/mach-pxa/regs-u2d.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
#ifndef __ASM_ARCH_PXA3xx_U2D_H
33
#define __ASM_ARCH_PXA3xx_U2D_H
44

5-
#include <mach/bitfield.h>
6-
75
/*
86
* USB2 device controller registers and bits definitions
97
*/

drivers/video/fbdev/pxafb.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
#include <asm/io.h>
6565
#include <asm/irq.h>
6666
#include <asm/div64.h>
67-
#include <mach/bitfield.h>
6867
#include <linux/platform_data/video-pxafb.h>
6968

7069
/*

0 commit comments

Comments
 (0)