aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/macintosh/macio-adb.c1
-rw-r--r--drivers/macintosh/smu.c4
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/macintosh/macio-adb.c b/drivers/macintosh/macio-adb.c
index 79119f56e82d..bd6da7a9c55b 100644
--- a/drivers/macintosh/macio-adb.c
+++ b/drivers/macintosh/macio-adb.c
@@ -155,6 +155,7 @@ static int macio_adb_reset_bus(void)
155 while ((in_8(&adb->ctrl.r) & ADB_RST) != 0) { 155 while ((in_8(&adb->ctrl.r) & ADB_RST) != 0) {
156 if (--timeout == 0) { 156 if (--timeout == 0) {
157 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) & ~ADB_RST); 157 out_8(&adb->ctrl.r, in_8(&adb->ctrl.r) & ~ADB_RST);
158 spin_unlock_irqrestore(&macio_lock, flags);
158 return -1; 159 return -1;
159 } 160 }
160 } 161 }
diff --git a/drivers/macintosh/smu.c b/drivers/macintosh/smu.c
index 888448cf7f1f..c9da5c4c167d 100644
--- a/drivers/macintosh/smu.c
+++ b/drivers/macintosh/smu.c
@@ -1183,8 +1183,10 @@ static ssize_t smu_read_command(struct file *file, struct smu_private *pp,
1183 return -EOVERFLOW; 1183 return -EOVERFLOW;
1184 spin_lock_irqsave(&pp->lock, flags); 1184 spin_lock_irqsave(&pp->lock, flags);
1185 if (pp->cmd.status == 1) { 1185 if (pp->cmd.status == 1) {
1186 if (file->f_flags & O_NONBLOCK) 1186 if (file->f_flags & O_NONBLOCK) {
1187 spin_unlock_irqrestore(&pp->lock, flags);
1187 return -EAGAIN; 1188 return -EAGAIN;
1189 }
1188 add_wait_queue(&pp->wait, &wait); 1190 add_wait_queue(&pp->wait, &wait);
1189 for (;;) { 1191 for (;;) {
1190 set_current_state(TASK_INTERRUPTIBLE); 1192 set_current_state(TASK_INTERRUPTIBLE);