diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-02 15:33:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-02 15:33:05 +0200 |
commit | 7cf2bafde4d25fbd2cbe819c8680b6bddfeea5e1 (patch) | |
tree | b4f0c3716ddc70389f267be504bee99c073052c9 /board/pcm043 | |
parent | 2baeaf38f3d9ace1fb06fdd2f84294c311bf33bf (diff) | |
download | barebox-7cf2bafde4d25fbd2cbe819c8680b6bddfeea5e1.tar.gz barebox-7cf2bafde4d25fbd2cbe819c8680b6bddfeea5e1.tar.xz |
boards: use recently introduced protect_file function
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'board/pcm043')
-rw-r--r-- | board/pcm043/pcm043.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/pcm043/pcm043.c b/board/pcm043/pcm043.c index 8e0eab4f92..86b32332d3 100644 --- a/board/pcm043/pcm043.c +++ b/board/pcm043/pcm043.c @@ -103,7 +103,7 @@ static int imx35_devices_init(void) devfs_add_partition("nor0", 0x00000, 0x40000, PARTITION_FIXED, "self0"); /* ourself */ devfs_add_partition("nor0", 0x40000, 0x20000, PARTITION_FIXED, "env0"); /* environment */ - dev_protect(&cfi_dev, 0x20000, 0, 1); + protect_file("/dev/env0", 1); register_device(&nand_dev); |