From patchwork Wed Jul 8 00:11:38 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [04/31] petitboot: Remove discover sd to ps3d hack Date: Tue, 07 Jul 2009 14:11:38 -0000 From: Geoff Levand X-Patchwork-Id: 29548 Message-Id: <20090708001135.235112200@am.sony.com> To: Jeremy Kerr Cc: cbe-oss-dev@ozlabs.org This is now old enough to be retired and allow config files on ps3d devices to refer to scsi devices. Signed-off-by: Geoff Levand --- discover/paths.c | 8 -------- 1 file changed, 8 deletions(-) --- a/discover/paths.c +++ b/discover/paths.c @@ -81,14 +81,6 @@ char *parse_device_path(void *alloc_ctx, if (is_prefix(dev_str, "/dev/")) dev_str += strlen("/dev/"); - /* PS3 hack: if we're reading from a ps3dx device, and we refer to - * a sdx device, remap to ps3dx */ - if (cur_dev && is_prefix(cur_dev, "/dev/ps3d") - && is_prefix(dev_str, "sd")) { - snprintf(tmp, 255, "ps3d%s", dev_str + 2); - dev_str = tmp; - } - return join_paths(alloc_ctx, "/dev", dev_str); }