*/
#if defined(CONFIG_MXC_SECURITY_SCC) || defined(CONFIG_MXC_SECURITY_SCC_MODULE)
static struct platform_device mxc_scc_device = {
- .name = "mxc_scc",
- .id = 0,
+ .name = "mxc_scc",
+ .id = 0,
};
static void mxc_init_scc(void)
{
- platform_device_register(&mxc_scc_device);
+ platform_device_register(&mxc_scc_device);
}
#else
static inline void mxc_init_scc(void)
*/
#if defined(CONFIG_MXC_SECURITY_SCC) || defined(CONFIG_MXC_SECURITY_SCC_MODULE)
static struct platform_device mxc_scc_device = {
- .name = "mxc_scc",
- .id = 0,
+ .name = "mxc_scc",
+ .id = 0,
};
static void mxc_init_scc(void)
{
- platform_device_register(&mxc_scc_device);
+ platform_device_register(&mxc_scc_device);
}
#else
static inline void mxc_init_scc(void)
/* See whether there is an SCC available */
if (0 && !SCC_ENABLED()) {
- pr_debug
+ printk
("SCC: Fuse for SCC is set to disabled. Exiting.\n");
} else {
/* Map the SCC (SCM and SMN) memory on the internal bus into
kernel address space */
+
scc_base = ioremap_nocache(SCC_BASE, SCC_ADDRESS_RANGE);
/* If that worked, we can try to use the SCC */
*/
if (scc_availability == SCC_STATUS_CHECKING ||
scc_availability == SCC_STATUS_UNIMPLEMENTED) {
- scc_cleanup();
+ mxc_scc_remove(pdev);
} else {
return_value = 0; /* All is well */
}
} /* mxc_scc_probe */
/*****************************************************************************/
-/* fn scc_cleanup() */
+/* fn mxc_scc_remove() */
/*****************************************************************************/
/*!
* Perform cleanup before driver/module is unloaded by setting the machine