aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/swim3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/swim3.c')
-rw-r--r--drivers/block/swim3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/block/swim3.c b/drivers/block/swim3.c
index 57763c54363a..758f2ac878cf 100644
--- a/drivers/block/swim3.c
+++ b/drivers/block/swim3.c
@@ -1090,10 +1090,13 @@ static const struct block_device_operations floppy_fops = {
1090static void swim3_mb_event(struct macio_dev* mdev, int mb_state) 1090static void swim3_mb_event(struct macio_dev* mdev, int mb_state)
1091{ 1091{
1092 struct floppy_state *fs = macio_get_drvdata(mdev); 1092 struct floppy_state *fs = macio_get_drvdata(mdev);
1093 struct swim3 __iomem *sw = fs->swim3; 1093 struct swim3 __iomem *sw;
1094 1094
1095 if (!fs) 1095 if (!fs)
1096 return; 1096 return;
1097
1098 sw = fs->swim3;
1099
1097 if (mb_state != MB_FD) 1100 if (mb_state != MB_FD)
1098 return; 1101 return;
1099 1102