diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-27 05:10:30 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-27 05:17:51 -0400 |
commit | 0317c6cecd3d6cfd8f920544239a0ba4d3c3f458 (patch) | |
tree | a98f9818d49c343ca9932918d268ea037e2b4ef6 /drivers/gpu/drm/gma500 | |
parent | 7c0143341a5b457eecf2490ab823a19e98ec082f (diff) |
drm/i915/bios: cleanup return type of intel_parse_bios()
These are unintuitive. These are type bool and return -1 casted to true
on failure. Let's just make it return an int. The callers don't care,
but let's change this as a cleanup.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500')
-rw-r--r-- | drivers/gpu/drm/gma500/intel_bios.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/gma500/intel_bios.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/gma500/intel_bios.c b/drivers/gpu/drm/gma500/intel_bios.c index 973d7f6d66b..8d7caf0f363 100644 --- a/drivers/gpu/drm/gma500/intel_bios.c +++ b/drivers/gpu/drm/gma500/intel_bios.c | |||
@@ -427,7 +427,7 @@ parse_device_mapping(struct drm_psb_private *dev_priv, | |||
427 | * | 427 | * |
428 | * Returns 0 on success, nonzero on failure. | 428 | * Returns 0 on success, nonzero on failure. |
429 | */ | 429 | */ |
430 | bool psb_intel_init_bios(struct drm_device *dev) | 430 | int psb_intel_init_bios(struct drm_device *dev) |
431 | { | 431 | { |
432 | struct drm_psb_private *dev_priv = dev->dev_private; | 432 | struct drm_psb_private *dev_priv = dev->dev_private; |
433 | struct pci_dev *pdev = dev->pdev; | 433 | struct pci_dev *pdev = dev->pdev; |
diff --git a/drivers/gpu/drm/gma500/intel_bios.h b/drivers/gpu/drm/gma500/intel_bios.h index 0a738663eb5..2e95523b84b 100644 --- a/drivers/gpu/drm/gma500/intel_bios.h +++ b/drivers/gpu/drm/gma500/intel_bios.h | |||
@@ -431,7 +431,7 @@ struct bdb_driver_features { | |||
431 | u8 custom_vbt_version; | 431 | u8 custom_vbt_version; |
432 | } __attribute__((packed)); | 432 | } __attribute__((packed)); |
433 | 433 | ||
434 | extern bool psb_intel_init_bios(struct drm_device *dev); | 434 | extern int psb_intel_init_bios(struct drm_device *dev); |
435 | extern void psb_intel_destroy_bios(struct drm_device *dev); | 435 | extern void psb_intel_destroy_bios(struct drm_device *dev); |
436 | 436 | ||
437 | /* | 437 | /* |