i2c: dln2: make use of the new infrastructure for quirks
[cascardo/linux.git] / kernel / compat.c
index ebb3c36..24f0061 100644 (file)
@@ -276,8 +276,7 @@ COMPAT_SYSCALL_DEFINE2(nanosleep, struct compat_timespec __user *, rqtp,
         * core implementation decides to return random nonsense.
         */
        if (ret == -ERESTART_RESTARTBLOCK) {
-               struct restart_block *restart
-                       = &current_thread_info()->restart_block;
+               struct restart_block *restart = &current->restart_block;
 
                restart->fn = compat_nanosleep_restart;
                restart->nanosleep.compat_rmtp = rmtp;
@@ -860,7 +859,7 @@ COMPAT_SYSCALL_DEFINE4(clock_nanosleep, clockid_t, which_clock, int, flags,
                return -EFAULT;
 
        if (err == -ERESTART_RESTARTBLOCK) {
-               restart = &current_thread_info()->restart_block;
+               restart = &current->restart_block;
                restart->fn = compat_clock_nanosleep_restart;
                restart->nanosleep.compat_rmtp = rmtp;
        }