Commit 3083894f authored by Rob Clark's avatar Rob Clark

drm/msm: COMPILE_TEST support

With a simple stub, we can get COMPILE_TEST support.
Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
parent 859ae233
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
config DRM_MSM config DRM_MSM
tristate "MSM DRM" tristate "MSM DRM"
depends on DRM depends on DRM
depends on ARCH_MSM depends on (ARCH_MSM && ARCH_MSM8960) || (ARM && COMPILE_TEST)
depends on ARCH_MSM8960
select DRM_KMS_HELPER select DRM_KMS_HELPER
select SHMEM select SHMEM
select TMPFS select TMPFS
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
* this program. If not, see <http://www.gnu.org/licenses/>. * this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <mach/clk.h>
#include "mdp4_kms.h" #include "mdp4_kms.h"
#include "drm_crtc.h" #include "drm_crtc.h"
......
...@@ -31,6 +31,15 @@ ...@@ -31,6 +31,15 @@
#include <linux/types.h> #include <linux/types.h>
#include <asm/sizes.h> #include <asm/sizes.h>
#if defined(CONFIG_COMPILE_TEST) && !defined(CONFIG_ARCH_MSM)
/* stubs we need for compile-test: */
static inline struct device *msm_iommu_get_ctx(const char *ctx_name)
{
return NULL;
}
#endif
#ifndef CONFIG_OF #ifndef CONFIG_OF
#include <mach/board.h> #include <mach/board.h>
#include <mach/socinfo.h> #include <mach/socinfo.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment