ps3flash: Fix region align checks
commit2d7a01dc249975cfd8ac3b7a0e2574e3f9314d5b
authorAndre Heider <a.heider@gmail.com>
Sun, 17 Jul 2011 19:17:14 +0000 (17 21:17 +0200)
committerdhewg <dhewg@wiibrew.org>
Sun, 3 Jun 2012 09:24:08 +0000 (3 11:24 +0200)
tree14a94ed9e66fb5b455969b2e976762f777b74284
parent9a6cbaf2452cb8ffc90401520611289b53747b4f
ps3flash: Fix region align checks

dev->region_idx is set in ps3stor_probe_access(), which is called from
ps3stor_setup(). Move the checks after the ps3stor_setup() call to
make the driver check the region that's being used, and not always the
first one.

Signed-off-by: Andre Heider <a.heider@gmail.com>
drivers/char/ps3flash.c