summaryrefslogtreecommitdiff
path: root/arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c')
-rw-r--r--arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c b/arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c
index e0c1906166a2..2c9a32a9b568 100644
--- a/arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c
+++ b/arch/arm/plat-mxc/devices/platform-mxc-hdmi-core.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Freescale Semiconductor, Inc. All Rights Reserved.
+ * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
@@ -45,6 +45,9 @@ struct platform_device *__init imx_add_mxc_hdmi_core(
},
};
+ if (!fuse_dev_is_available(MXC_DEV_HDMI))
+ return ERR_PTR(-ENODEV);
+
return imx_add_platform_device_dmamask("mxc_hdmi_core", -1,
res, ARRAY_SIZE(res), pdata, sizeof(*pdata), DMA_BIT_MASK(32));
}