diff options
author | Hannes Reinecke <hare@suse.de> | 2005-11-09 22:47:18 +0100 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2005-11-09 22:47:18 +0100 |
commit | 4349d5cdf28d46c22d467079e80ee9695dcec0ad (patch) | |
tree | f16b8cb1689a82ebb48d95f9be2f66b56fb62189 /drivers/ide/ide.c | |
parent | a5ee3634630c218e86afc5bae2acb55b9e47625d (diff) | |
download | blackbird-op-linux-4349d5cdf28d46c22d467079e80ee9695dcec0ad.tar.gz blackbird-op-linux-4349d5cdf28d46c22d467079e80ee9695dcec0ad.zip |
[PATCH] ide: incorrect device link for ide-cs
Devices driven by ide-cs will appear under /sys/devices instead of the
appropriate PCMCIA device. To fix this I had to extend the hw_regs_t
structure with a 'struct device' field, which allows us to set the
parent link for the appropriate hwif.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@suse.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index 9fe19808d815..8af179b531c3 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c @@ -803,6 +803,7 @@ found: hwif->irq = hw->irq; hwif->noprobe = 0; hwif->chipset = hw->chipset; + hwif->gendev.parent = hw->dev; if (!initializing) { probe_hwif_init_with_fixup(hwif, fixup); |