sh: Mass ctrl_in/outX to __raw_read/writeX conversion.
The old ctrl in/out routines are non-portable and unsuitable for cross-platform use. While drivers/sh has already been sanitized, there is still quite a lot of code that is not. This converts the arch/sh/ bits over, which permits us to flag the routines as deprecated whilst still building with -Werror for the architecture code, and to ensure that future users are not added. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -28,9 +28,9 @@ int __init detect_cpu_and_cache_system(void)
|
||||
[9] = (1 << 16)
|
||||
};
|
||||
|
||||
pvr = (ctrl_inl(CCN_PVR) >> 8) & 0xffffff;
|
||||
prr = (ctrl_inl(CCN_PRR) >> 4) & 0xff;
|
||||
cvr = (ctrl_inl(CCN_CVR));
|
||||
pvr = (__raw_readl(CCN_PVR) >> 8) & 0xffffff;
|
||||
prr = (__raw_readl(CCN_PRR) >> 4) & 0xff;
|
||||
cvr = (__raw_readl(CCN_CVR));
|
||||
|
||||
/*
|
||||
* Setup some sane SH-4 defaults for the icache
|
||||
|
Reference in New Issue
Block a user