static int download_boot_block(void *dev_info, copr_buffer * buf) { if (buf->len <= 0 || buf->len > sizeof(buf->data)) return -EINVAL; if (!sscape_download_boot(devc, buf->data, buf->len, buf->flags)) { printk(KERN_ERR "soundscape: Unable to load microcode block to the OBP.\n"); return -EIO; } return 0; }
static int download_boot_block(void *dev_info, copr_buffer * buf) { if (buf->len <= 0 || buf->len > sizeof(buf->data)) return -(EINVAL); if (!sscape_download_boot(devc, buf->data, buf->len, buf->flags)) { printf("SSCAPE: Unable to load microcode block to the OBP.\n"); return -(EIO); } return 0; }