diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-11 21:06:26 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-06-19 18:48:36 +0200 |
commit | 2093884040d799898c9931d5c4032b64a145c6c2 (patch) | |
tree | 15d111e0edd8a7eba162589718790d9fb44d7267 /drivers/ata/ide-sff.c | |
parent | 48939b0b70292527b9260c7bf6e68fe5272dce96 (diff) | |
download | barebox-2093884040d799898c9931d5c4032b64a145c6c2.tar.gz barebox-2093884040d799898c9931d5c4032b64a145c6c2.tar.xz |
ata: ide: Allow to set the devicename
To get persistent devicenames under /dev/ allow to set the
devicename from the driver instead of using "ata" unconditionally.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/ata/ide-sff.c')
-rw-r--r-- | drivers/ata/ide-sff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/ide-sff.c b/drivers/ata/ide-sff.c index 632b0e5910..ef55357d5e 100644 --- a/drivers/ata/ide-sff.c +++ b/drivers/ata/ide-sff.c @@ -324,7 +324,7 @@ static struct ata_port_operations ide_ops = { .reset = ide_reset, }; -int ide_port_register(struct device_d *dev, struct ata_ioports *io) +int ide_port_register(struct device_d *dev, struct ata_ioports *io, const char *devname) { struct ide_port *ide; int ret; @@ -334,6 +334,7 @@ int ide_port_register(struct device_d *dev, struct ata_ioports *io) ide->io = io; ide->port.ops = &ide_ops; ide->port.dev = dev; + ide->port.devname = devname; ret = ata_port_register(&ide->port); |