drm: Use resource_size_t for drm_get_resource_{start, len}
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Feb 2009 05:55:45 +0000 (16:55 +1100)
committerDave Airlie <airlied@redhat.com>
Fri, 13 Mar 2009 04:23:56 +0000 (14:23 +1000)
commitd883f7f1b75c8dcafa891f7b9e69c5a2f0ff6d66
tree765a9bf6d3322ecfa42819622981baea2480ba41
parent041b62374c7fedc11a8a1eeda2868612d3d1436c
drm: Use resource_size_t for drm_get_resource_{start, len}

The DRM uses its own wrappers to obtain resources from PCI devices,
which currently convert the resource_size_t into an unsigned long.

This is broken on 32-bit platforms with >32-bit physical address
space.

This fixes them, along with a few occurences of unsigned long used
to store such a resource in drivers.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/gpu/drm/drm_bufs.c
drivers/gpu/drm/i915/i915_dma.c
drivers/gpu/drm/mga/mga_drv.h
drivers/gpu/drm/radeon/radeon_drv.h
drivers/gpu/drm/savage/savage_bci.c
include/drm/drmP.h
include/drm/drm_crtc.h