]> git.baikalelectronics.ru Git - kernel.git/commit
ps3: Replace direct file operations by callback
authorGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Wed, 10 Jun 2009 04:39:06 +0000 (04:39 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 15 Jun 2009 06:47:26 +0000 (16:47 +1000)
commitc4110a4fd4c2d74c7d8426d03189a88c8d6ac12f
tree60017689df8260806cba7c007f9f9d85e3758b31
parent27118b079ad112050a6f753a1582237b5805bc19
ps3: Replace direct file operations by callback

Currently the FLASH database is updated by the kernel using file operations,
meant for userspace only. While this works for us because copy_{from,to}_user()
on powerpc can handle kernel pointers, this is unportable and a bad example.
Replace the file operations by callbacks, registered by the ps3flash driver.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/ps3.h
arch/powerpc/platforms/ps3/os-area.c
drivers/char/ps3flash.c