Andreas Schwab bb54affa6f ide: fix IDE PMAC breakage
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> writes:

> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> ---
>  drivers/ide/ide-probe.c |    9 ++-------
>  1 file changed, 2 insertions(+), 7 deletions(-)
>
> Index: b/drivers/ide/ide-probe.c
> ===================================================================
> --- a/drivers/ide/ide-probe.c
> +++ b/drivers/ide/ide-probe.c
> @@ -640,14 +640,9 @@ static int ide_register_port(ide_hwif_t 
>  	/* register with global device tree */
>  	dev_set_name(&hwif->gendev, hwif->name);
>  	hwif->gendev.driver_data = hwif;
> -	if (hwif->gendev.parent == NULL) {
> -		if (hwif->dev)
> -			hwif->gendev.parent = hwif->dev;
> -		else
> -			/* Would like to do = &device_legacy */
> -			hwif->gendev.parent = NULL;
> -	}
> +	hwif->gendev.parent = hwif->dev;

This [bart: commit 96d40941236722777c259775640b8880b7dc6f33 ("ide: small
ide_register_port() cleanup")] breaks ide-pmac.  It overwrites the parent
that pmac_ide_macio_attach has set.

Signed-off-by: Andreas Schwab <schwab@suse.de>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2009-01-19 13:46:56 +01:00
..
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:55 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2008-11-27 12:38:11 +00:00
2009-01-09 03:39:43 -05:00
2009-01-06 17:20:53 +01:00
2008-11-09 21:35:36 +01:00
2009-01-06 17:20:53 +01:00
2009-01-14 19:19:04 +01:00
2008-07-23 19:55:57 +02:00
2009-01-19 13:46:56 +01:00
2009-01-06 17:20:56 +01:00
2009-01-06 17:20:56 +01:00
2009-01-06 17:20:52 +01:00
2008-11-02 21:40:08 +01:00
2008-12-28 20:00:03 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:21:01 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:53 +01:00
2008-10-26 09:35:05 -07:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2009-01-14 19:19:03 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00
2009-01-06 17:20:52 +01:00