|
@@ -28,7 +28,7 @@ static void zfcp_ccw_remove(struct ccw_device *);
|
|
static int zfcp_ccw_set_online(struct ccw_device *);
|
|
static int zfcp_ccw_set_online(struct ccw_device *);
|
|
static int zfcp_ccw_set_offline(struct ccw_device *);
|
|
static int zfcp_ccw_set_offline(struct ccw_device *);
|
|
static int zfcp_ccw_notify(struct ccw_device *, int);
|
|
static int zfcp_ccw_notify(struct ccw_device *, int);
|
|
-static void zfcp_ccw_shutdown(struct device *);
|
|
|
|
|
|
+static void zfcp_ccw_shutdown(struct ccw_device *);
|
|
|
|
|
|
static struct ccw_device_id zfcp_ccw_device_id[] = {
|
|
static struct ccw_device_id zfcp_ccw_device_id[] = {
|
|
{CCW_DEVICE_DEVTYPE(ZFCP_CONTROL_UNIT_TYPE,
|
|
{CCW_DEVICE_DEVTYPE(ZFCP_CONTROL_UNIT_TYPE,
|
|
@@ -51,9 +51,7 @@ static struct ccw_driver zfcp_ccw_driver = {
|
|
.set_online = zfcp_ccw_set_online,
|
|
.set_online = zfcp_ccw_set_online,
|
|
.set_offline = zfcp_ccw_set_offline,
|
|
.set_offline = zfcp_ccw_set_offline,
|
|
.notify = zfcp_ccw_notify,
|
|
.notify = zfcp_ccw_notify,
|
|
- .driver = {
|
|
|
|
- .shutdown = zfcp_ccw_shutdown,
|
|
|
|
- },
|
|
|
|
|
|
+ .shutdown = zfcp_ccw_shutdown,
|
|
};
|
|
};
|
|
|
|
|
|
MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);
|
|
MODULE_DEVICE_TABLE(ccw, zfcp_ccw_device_id);
|
|
@@ -277,12 +275,12 @@ zfcp_ccw_register(void)
|
|
* Makes sure that QDIO queues are down when the system gets stopped.
|
|
* Makes sure that QDIO queues are down when the system gets stopped.
|
|
*/
|
|
*/
|
|
static void
|
|
static void
|
|
-zfcp_ccw_shutdown(struct device *dev)
|
|
|
|
|
|
+zfcp_ccw_shutdown(struct ccw_device *cdev)
|
|
{
|
|
{
|
|
struct zfcp_adapter *adapter;
|
|
struct zfcp_adapter *adapter;
|
|
|
|
|
|
down(&zfcp_data.config_sema);
|
|
down(&zfcp_data.config_sema);
|
|
- adapter = dev_get_drvdata(dev);
|
|
|
|
|
|
+ adapter = dev_get_drvdata(&cdev->dev);
|
|
zfcp_erp_adapter_shutdown(adapter, 0);
|
|
zfcp_erp_adapter_shutdown(adapter, 0);
|
|
zfcp_erp_wait(adapter);
|
|
zfcp_erp_wait(adapter);
|
|
up(&zfcp_data.config_sema);
|
|
up(&zfcp_data.config_sema);
|