Miklos Szeredi 9974e43d90 ide: fix generic_ide_suspend/resume Oops
This patch fixes a regresion introduced by commit 0998d063 (device-core: Ensure
drvdata = NULL when no driver is bound).

Suspend oopses in generic_ide_suspend() because dev_get_drvdata()
returns NULL (dev->p->driver_data == NULL) and this function is not
prepared for this.

Fix is based on Alan Stern's suggestion.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-08-21 14:54:42 -07:00
..
2011-10-13 17:04:50 -04:00
2009-05-17 19:12:25 +02:00
2010-10-26 10:17:29 -07:00
2011-08-04 01:29:51 -07:00
2011-03-09 19:54:27 +01:00
2011-10-03 14:28:18 -04:00
2009-05-17 19:12:25 +02:00
2009-05-17 19:12:25 +02:00
2011-03-10 08:52:07 +01:00
2010-01-19 11:30:09 -08:00
2011-10-11 15:19:43 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00