diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-09-28 03:48:18 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-09-28 03:48:18 -0400 |
commit | d639ca94188fedbd8cfde1ab4ed9e9878ab2f01e (patch) | |
tree | 07795198224b43bf96a1471b4add4237f023dd09 /drivers/ata/libata-core.c | |
parent | c791c30670ea61f19eec390124128bf278e854fe (diff) | |
download | blackbird-op-linux-d639ca94188fedbd8cfde1ab4ed9e9878ab2f01e.tar.gz blackbird-op-linux-d639ca94188fedbd8cfde1ab4ed9e9878ab2f01e.zip |
[libata] init probe_ent->private_data in a common location
Don't write the same code twice, in two different functions, when they
both call the same initialization function, with the same private_data
pointer info.
Also, note a bug found with a FIXME.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 396493cc98ce..72644bdecbb0 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -5785,6 +5785,7 @@ ata_probe_ent_alloc(struct device *dev, const struct ata_port_info *port) probe_ent->mwdma_mask = port->mwdma_mask; probe_ent->udma_mask = port->udma_mask; probe_ent->port_ops = port->port_ops; + probe_ent->private_data = port->private_data; return probe_ent; } |