Revision c64eafaf

b/hw/qdev.c
162 162
    driver = qemu_opt_get(opts, "driver");
163 163
    if (driver && !strcmp(driver, "?")) {
164 164
        for (info = device_info_list; info != NULL; info = info->next) {
165
            if (info->no_user) {
166
                continue;       /* not available, don't show */
167
            }
165 168
            qdev_print_devinfo(info);
166 169
        }
167 170
        return 1;
......
197 200

  
198 201
    /* find driver */
199 202
    info = qdev_find_info(NULL, driver);
200
    if (!info) {
203
    if (!info || info->no_user) {
201 204
        qerror_report(QERR_DEVICE_NOT_FOUND, driver);
202 205
        return NULL;
203 206
    }
204
    if (info->no_user) {
205
        error_report("device \"%s\" can't be added via command line",
206
                     info->name);
207
        return NULL;
208
    }
209 207

  
210 208
    /* find bus */
211 209
    path = qemu_opt_get(opts, "bus");

Also available in: Unified diff