]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - block/bsg.c
fs/notify/fanotify/fanotify_user.c: fix FAN_MARK_FLUSH flag checking
[karo-tx-linux.git] / block / bsg.c
index 420a5a9f1b23f72963dc928b2dd009be443e3337..e5214c1480962e5d53c0f0ced44af571051d9654 100644 (file)
@@ -1008,7 +1008,7 @@ int bsg_register_queue(struct request_queue *q, struct device *parent,
        /*
         * we need a proper transport to send commands, not a stacked device
         */
-       if (!q->request_fn)
+       if (!queue_is_rq_based(q))
                return 0;
 
        bcd = &q->bsg_dev;