From: franck.jullien@gmail.com
To: barebox@lists.infradead.org
Subject: [PATCH 1/2] ata: Add dev ref to blockdevice during probe
Date: Wed, 9 Nov 2011 12:29:20 +0100 [thread overview]
Message-ID: <1320838161-29653-2-git-send-email-franck.jullien@gmail.com> (raw)
In-Reply-To: <1320838161-29653-1-git-send-email-franck.jullien@gmail.com>
From: Franck Jullien <franck.jullien@gmail.com>
Add missing reference to dev when register the blockdevice.
This prevent the creation of a cdev with a NULL reference to dev in
blockdevice_register.
Signed-off-by: Franck Jullien <franck.jullien@gmail.com>
---
drivers/ata/disk_drive.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/ata/disk_drive.c b/drivers/ata/disk_drive.c
index 6a5dc87..a9d0dee 100644
--- a/drivers/ata/disk_drive.c
+++ b/drivers/ata/disk_drive.c
@@ -205,6 +205,7 @@ static int disk_probe(struct device_d *dev)
atablk->blk.num_blocks = dev->resource[0].size / SECTOR_SIZE;
atablk->blk.ops = &ataops;
atablk->blk.blockbits = 9;
+ atablk->blk.dev = dev;
atablk->dev = dev;
atablk->intf = intf;
blockdevice_register(&atablk->blk);
--
1.7.7
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2011-11-09 11:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-09 11:29 Try to fix mount display of a disk franck.jullien
2011-11-09 11:29 ` franck.jullien [this message]
2011-11-09 11:29 ` [PATCH 2/2] [RFC v2] mount: Fix the printing of device name franck.jullien
2011-11-11 11:15 ` Try to fix mount display of a disk Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1320838161-29653-2-git-send-email-franck.jullien@gmail.com \
--to=franck.jullien@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox