- /*
- * mknod a temp dev to communicate with the device.
- */
- if (!dev_specified && create_tmp_dev(class_dev, maj_min_dev,
- dev_type)) {
- dprintf("create_tmp_dev failed\n");
- return 1;
- }
-
- /*
- * Get any per device (vendor + model) options from the config
- * file.
- */
- retval = per_dev_options(scsi_dev, &good_dev, &page_code, callout);
- dprintf("per dev options: good %d; page code 0x%x; callout '%s'\n",
- good_dev, page_code, callout);
-
-#define ALIGN 512
- unaligned_buf = malloc(MAX_SERIAL_LEN + ALIGN);
- serial = (char*) (((unsigned long) unaligned_buf + (ALIGN - 1))
- & ~(ALIGN - 1));
- dprintf("buffer unaligned 0x%p; aligned 0x%p\n", unaligned_buf, serial);
-#undef ALIGN
+ /* get per device (vendor + model) options from the config file */
+ retval = per_dev_options(dev_scsi, &good_dev, &page_code);
+ dbg("per dev options: good %d; page code 0x%x", good_dev, page_code);