ARM: omap: Use correct device to mount on /boot
The current code tests if a partition (i.e. disk0.0) exists and instead
of mounting boot from this partition it uses the whole device (disk0).
This only works because the the FAT code accepts a MBR as input and
automatically skips it.

Let the code use the partition to mount /boot instead as it was
intended. We don't have to stat() the partition device, since this
error will be caught by mount() anyway, so remove the unnecessary
stat().

Reported-by: Peter Mamonov <pmamonov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d9c2cfd commit 99c9da2817ba1bcc3d33782e68ec6ceeeb2c4545
@Sascha Hauer Sascha Hauer authored on 10 Nov 2015
Showing 1 changed file
View
arch/arm/mach-omap/omap_generic.c