Subject: linux-next: driver-core build failure

From: Stephen Rothwell <[email-masked]>
Date: Thu, 17 Jul 2008 10:32:07 +1000

Hi Greg,

I have been carrying the patch below and applying it after the scsi tree
merge for some time now.  Now that the scsi tree has been merged into
Linus' tree, can you add this to the driver-core tree, please?
Preferably merged with the patch that changes the class_find_device API.

-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/

>>From 66bcc1fea773190ed16597c1b57b9a8601ba1a23 Mon Sep 17 00:00:00 2001
From: Stephen Rothwell <[email-masked]>
Date: Fri, 6 Jun 2008 14:26:18 +1000
Subject: [PATCH] scsi: fix fallout from the class_find_device API change

Signed-off-by: Stephen Rothwell <[email-masked]>
---
 drivers/scsi/scsi_transport_iscsi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 7794651..5ce9151 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -170,7 +170,7 @@ iscsi_create_endpoint(int dd_size)
 	int err;
 
 	for (id = 1; id < ISCSI_MAX_EPID; id++) {
-		dev = class_find_device(&iscsi_endpoint_class, &id,
+		dev = class_find_device(&iscsi_endpoint_class, NULL, &id,
 					iscsi_match_epid);
 		if (!dev)
 			break;
@@ -221,7 +221,7 @@ struct iscsi_endpoint *iscsi_lookup_endpoint(u64 handle)
 {
 	struct device *dev;
 
-	dev = class_find_device(&iscsi_endpoint_class, &handle,
+	dev = class_find_device(&iscsi_endpoint_class, NULL, &handle,
 				iscsi_match_epid);
 	if (!dev)
 		return NULL;
-- 
1.5.5.3