[U-Boot-Users] [Patch] U-Boot-V2: Board: SDP3430: fix ram driver for ioctl, open, close change

Menon, Nishanth x0nishan at ti.com
Tue Jun 10 20:11:38 CEST 2008


Commit ee6d36a5405305f3bbdb0457948c219731b3d9cc introduced requirement for default functions be registered. Without this accessing /dev/ram0 will not work on SDP3430 in the default config.

Signed-off-by: Nishanth Menon<x0nishan at ti.com>

---
 board/omap/board-sdp343x.c |    3 +++
 1 file changed, 3 insertions(+)

Index: u-boot-v2.git/board/omap/board-sdp343x.c
===================================================================
--- u-boot-v2.git.orig/board/omap/board-sdp343x.c       2008-06-10 13:03:29.000000000 -0500
+++ u-boot-v2.git/board/omap/board-sdp343x.c    2008-06-10 13:03:56.000000000 -0500
@@ -656,8 +656,11 @@
 static struct driver_d ram_drv = {
        .name = "ram",
        .probe = dummy_probe,
+       .open  = dev_open_default,
+       .close = dev_close_default,
        .read = mem_read,
        .write = mem_write,
+       .lseek  = dev_lseek_default,
        .type = DEVICE_TYPE_DRAM,
 };
 #endif




More information about the U-Boot mailing list