[PATCH][2.4.28-pre2] drivers/ide/pci/sc1200.c cast-as-lvalue fix

From: Mikael Pettersson
Date: Sat Aug 28 2004 - 09:12:28 EST


Fix for cast-as-lvalue in drivers/ide/pci/sc1200.c. Backport from 2.6.

/Mikael

--- linux-2.4.28-pre2/drivers/ide/pci/sc1200.c.~1~ 2003-06-14 13:30:22.000000000 +0200
+++ linux-2.4.28-pre2/drivers/ide/pci/sc1200.c 2004-08-28 14:58:54.000000000 +0200
@@ -418,7 +418,7 @@
ss = kmalloc(sizeof(sc1200_saved_state_t), GFP_KERNEL);
if (ss == NULL)
return -ENOMEM;
- (sc1200_saved_state_t *)hwif->config_data = ss;
+ hwif->config_data = (unsigned long)ss;
}
ss = (sc1200_saved_state_t *)hwif->config_data;
//
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/