[Cbe-oss-dev] [PATCH] Implement check_legacy_ioport() on PS3
David Woodhouse
dwmw2 at infradead.org
Fri Mar 30 10:02:52 EST 2007
It doesn't like it when we poke at legacy I/O ports like the i8042. We
should probably change the _default_ to return -ENODEV, and let any
strange platform which wants to allow unfettered access provide its own
function for that.
Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
--- linux-2.6.20.ppc64/arch/powerpc/platforms/ps3/setup.c.orig 2007-03-30 00:45:59.000000000 +0100
+++ linux-2.6.20.ppc64/arch/powerpc/platforms/ps3/setup.c 2007-03-30 00:48:29.000000000 +0100
@@ -230,6 +230,11 @@ static void ps3_machine_kexec(struct kim
}
#endif
+static int ps3_check_legacy_ioport(unsigned int baseport)
+{
+ return -ENODEV;
+}
+
define_machine(ps3) {
.name = "PS3",
.probe = ps3_probe,
@@ -240,6 +245,7 @@ define_machine(ps3) {
.set_rtc_time = ps3_set_rtc_time,
.get_rtc_time = ps3_get_rtc_time,
.calibrate_decr = ps3_calibrate_decr,
+ .check_legacy_ioport = ps3_check_legacy_ioport,
.progress = ps3_progress,
.restart = ps3_restart,
.power_off = ps3_power_off,
--
dwmw2
More information about the cbe-oss-dev
mailing list