From e1179bc8e2bfa379e178e1f206b4687df71755f1 Mon Sep 17 00:00:00 2001 From: Jorge Zapata Date: Thu, 19 Feb 2009 16:41:58 +0100 Subject: Avoid the high_memory check on arm platforms Handle correctly the proc/dri/0/name printing Helper function to check the PLATFORM feature --- include/drm/drmP.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/drm/drmP.h b/include/drm/drmP.h index ca7034ac11b..176fdc2c313 100644 --- a/include/drm/drmP.h +++ b/include/drm/drmP.h @@ -1029,6 +1029,11 @@ static inline int drm_mtrr_del(int handle, unsigned long offset, } #endif +static inline int drm_core_is_platform(struct drm_device *dev) +{ + return drm_core_check_feature(dev, DRIVER_IS_PLATFORM); +} + /******************************************************************/ /** \name Internal function definitions */ /*@{*/ -- cgit v1.2.3