summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:22:11 -0600
committerQuinn Jensen <quinn.jensen@freescale.com>2007-10-24 21:22:11 -0600
commit40b728a43e3aba1a810ea3a8332e90a606e99807 (patch)
treea3be49327825f7f50129838020c815acbdf8b55c /drivers
parent19f48fbe00e75572b2e28fd031bed5d0fa0d73f6 (diff)
CR ENGR00049086: fix scc fail fuse not blown
Patch for CR ENGR00049086: fix scc fail fuse not blown. Deregistering the driver properly to prevent boot crash if SCC fuse are not blown. Applies to linux 2.6.22 kernel for MX platforms. http://www.bitshrine.org/gpp/linux-2.6.22-mx-CR-ENGR00049086-fix-scc-fail-fuse-not-blow.patch
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mxc/security/mxc_scc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mxc/security/mxc_scc.c b/drivers/mxc/security/mxc_scc.c
index 1d9a782bbe3f..c8257b532639 100644
--- a/drivers/mxc/security/mxc_scc.c
+++ b/drivers/mxc/security/mxc_scc.c
@@ -273,11 +273,12 @@ static int mxc_scc_probe(struct platform_device *pdev)
/* 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 */
@@ -351,7 +352,7 @@ static int mxc_scc_probe(struct platform_device *pdev)
*/
if (scc_availability == SCC_STATUS_CHECKING ||
scc_availability == SCC_STATUS_UNIMPLEMENTED) {
- scc_cleanup();
+ mxc_scc_remove(pdev);
} else {
return_value = 0; /* All is well */
}
@@ -371,7 +372,7 @@ static int mxc_scc_probe(struct platform_device *pdev)
} /* mxc_scc_probe */
/*****************************************************************************/
-/* fn scc_cleanup() */
+/* fn mxc_scc_remove() */
/*****************************************************************************/
/*!
* Perform cleanup before driver/module is unloaded by setting the machine