Skip to content

Commit e8d3d47

Browse files
committed
ARM: OMAP2+: Drop plat/cpu.h for omap2plus
The cpu_is_omap macros are now local to arch/arm/mach-omap2 in soc.h and plat/cpu.h can finally be dropped for omap2+. Thanks everybody for help with fixing the drivers. Note that we can now also remove the unused plat/cpu.h from smartreflex.c and isp.c as they will cause compile errors with ARCH_MULTIPLATFORM enabled. Cc: Kevin Hilman <khilman@deeprootsystems.com> Acked-by: Jean Pihet <jean.pihet@newoldbits.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 16d60bb commit e8d3d47

7 files changed

Lines changed: 3 additions & 15 deletions

File tree

‎arch/arm/mach-omap2/drm.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "omap_device.h"
2929
#include "omap_hwmod.h"
30-
#include <plat/cpu.h>
3130

3231
#if defined(CONFIG_DRM_OMAP) || (CONFIG_DRM_OMAP_MODULE)
3332

‎arch/arm/mach-omap2/dss-common.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
#include <video/omap-panel-nokia-dsi.h>
3232
#include <video/omap-panel-picodlp.h>
3333

34-
#include <plat/cpu.h>
35-
34+
#include "soc.h"
3635
#include "dss-common.h"
3736
#include "mux.h"
3837

‎arch/arm/mach-omap2/prm2xxx.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
#include <linux/io.h>
1919
#include <linux/irq.h>
2020

21+
#include "soc.h"
2122
#include "common.h"
22-
#include <plat/cpu.h>
23-
2423
#include "vp.h"
2524
#include "powerdomain.h"
2625
#include "clockdomain.h"

‎arch/arm/mach-omap2/prm3xxx.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@
1818
#include <linux/io.h>
1919
#include <linux/irq.h>
2020

21+
#include "soc.h"
2122
#include "common.h"
22-
#include <plat/cpu.h>
23-
2423
#include "vp.h"
2524
#include "powerdomain.h"
2625
#include "prm3xxx.h"

‎arch/arm/plat-omap/include/plat/cpu.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,4 @@
3232
#include <mach/soc.h>
3333
#endif
3434

35-
#ifdef CONFIG_ARCH_OMAP2PLUS
36-
#include "../../mach-omap2/soc.h"
37-
#endif
38-
3935
#endif

‎drivers/media/platform/omap3isp/isp.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171
#include <media/v4l2-common.h>
7272
#include <media/v4l2-device.h>
7373

74-
#include <plat/cpu.h>
75-
7674
#include "isp.h"
7775
#include "ispreg.h"
7876
#include "ispccdc.h"

‎drivers/power/avs/smartreflex.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
#include <linux/pm_runtime.h>
2828
#include <linux/power/smartreflex.h>
2929

30-
#include <plat/cpu.h>
31-
3230
#define SMARTREFLEX_NAME_LEN 16
3331
#define NVALUE_NAME_LEN 40
3432
#define SR_DISABLE_TIMEOUT 200

0 commit comments

Comments
 (0)