Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/drm Adjust errno from dev->dr...
details: https://anonhg.NetBSD.org/src/rev/07d0ecbde5ad
branches: riastradh-drm2
changeset: 788616:07d0ecbde5ad
user: riastradh <riastradh%NetBSD.org@localhost>
date: Tue Jan 21 20:56:30 2014 +0000
description:
Adjust errno from dev->driver->load.
diffstat:
sys/external/bsd/drm2/drm/drm_drv.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 03805c25f048 -r 07d0ecbde5ad sys/external/bsd/drm2/drm/drm_drv.c
--- a/sys/external/bsd/drm2/drm/drm_drv.c Tue Jan 21 20:56:20 2014 +0000
+++ b/sys/external/bsd/drm2/drm/drm_drv.c Tue Jan 21 20:56:30 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: drm_drv.c,v 1.1.2.29 2014/01/21 20:56:20 riastradh Exp $ */
+/* $NetBSD: drm_drv.c,v 1.1.2.30 2014/01/21 20:56:30 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.29 2014/01/21 20:56:20 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: drm_drv.c,v 1.1.2.30 2014/01/21 20:56:30 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -318,7 +318,8 @@
KASSERT(dev->driver == daa->daa_driver);
if (dev->driver->load != NULL) {
- error = (*dev->driver->load)(dev, daa->daa_flags);
+ /* XXX errno Linux->NetBSD */
+ error = -(*dev->driver->load)(dev, daa->daa_flags);
if (error) {
aprint_error_dev(parent, "unable to load driver: %d\n",
error);
Home |
Main Index |
Thread Index |
Old Index