[Zrouter-src-freebsd] ZRouter.org: push to FreeBSD HEAD tree

zrouter-src-freebsd at zrouter.org zrouter-src-freebsd at zrouter.org
Wed Jul 25 14:36:31 UTC 2012


details:   http://zrouter.org/hg/FreeBSD/head//rev/b52d51848137
changeset: 507:b52d51848137
user:      Aleksandr Rybalko <ray at ddteam.net>
date:      Wed Jul 25 17:13:04 2012 +0300
description:
Get maxsize from chip table data

diffstat:

 head/sys/dev/flash/mx25l.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r ee87e0535ac7 -r b52d51848137 head/sys/dev/flash/mx25l.c
--- a/head/sys/dev/flash/mx25l.c	Wed Jul 25 17:11:43 2012 +0300
+++ b/head/sys/dev/flash/mx25l.c	Wed Jul 25 17:13:04 2012 +0300
@@ -502,7 +502,7 @@
 	sc->sc_disk->d_ioctl = mx25l_ioctl;
 	sc->sc_disk->d_name = "flash/spi";
 	sc->sc_disk->d_drv1 = sc;
-	sc->sc_disk->d_maxsize = DFLTPHYS;
+	sc->sc_disk->d_maxsize = ident->sectorsize;
 	sc->sc_disk->d_sectorsize = 4;
 	sc->sc_disk->d_mediasize = ident->sectorsize * ident->sectorcount;
 	sc->sc_disk->d_unit = device_get_unit(sc->sc_dev);


More information about the Zrouter-src-freebsd mailing list