Skip to contentSkip to conversation

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

PATCH New Menon 2 participants 2 messages Jun 10, 2008 – Jun 11, 2008

lore
Share & tools
lore

Menon

#0 lore raw

PATCH 1/1 U-Boot-V2: Board: SDP3430: fix ram driver for ioctl, open, close change

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

---
 board/omap/board-sdp343x.c |    3 +++
 1 file changed, 3 insertions(+)
board/omap/board-sdp343x.c 2008-06-10 13:03:56.000000000 -0500 renamed from board/omap/board-sdp343x.c 2008-06-10 13:03:29.000000000 -0500 +3 -0
Index: u-boot-v2.git/board/omap/board-sdp343x.c
===================================================================
@@ -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
#1 lore raw

PATCH 1/1 U-Boot-V2: Board: SDP3430: fix ram driver for ioctl, open, close change

Hi,

Quoted 1 line · Nishanth

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

In your patch tabs are replaced by whitespaces, so it does not apply. Fixed and applied, but I won't do this for a longer patch ;)

Regards,
Sascha

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

Index: u-boot-v2.git/board/omap/board-sdp343x.c
===================================================================

board/omap/board-sdp343x.c 2008-06-10 13:03:56.000000000 -0500 renamed from board/omap/board-sdp343x.c 2008-06-10 13:03:29.000000000 -0500 +3 -0
@@ -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
Signature · 4 lines
Pengutronix e.K. - Linux Solutions for Science and Industry
-----------------------------------------------------------
Kontakt-Informationen finden Sie im Header dieser Mail oder
auf der Webseite -> http://www.pengutronix.de/impressum/ <-