* block06/init.c: Update for disk device API change.  Changed EBADRQC
	to EINVAL.
This commit is contained in:
Joel Sherrill
2009-12-21 14:49:55 +00:00
parent db15ab3daf
commit 9325362b21
2 changed files with 8 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2009-12-21 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* block06/init.c: Update for disk device API change. Changed EBADRQC
to EINVAL.
2009-12-10 Joel Sherrill <joel.sherrill@oarcorp.com>
* termios01/init.c: Increase number of termios ports by 1.

View File

@@ -461,7 +461,7 @@ static int
bdbuf_disk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)
{
rtems_blkdev_request *r = argp;
bdbuf_disk *bdd = rtems_disk_driver_data (dd);
bdbuf_disk *bdd = rtems_disk_get_driver_data (dd);
errno = 0;
@@ -514,13 +514,13 @@ bdbuf_disk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)
break;
default:
errno = EBADRQC;
errno = EINVAL;
break;
}
break;
default:
errno = EBADRQC;
errno = EINVAL;
break;
}