drm/radeon: Fix sparc regression in r300_scratch()
authorDavid Miller <davem@davemloft.net>
Mon, 26 Apr 2010 09:55:42 +0000 (02:55 -0700)
committerDave Airlie <airlied@redhat.com>
Mon, 26 Apr 2010 23:40:57 +0000 (09:40 +1000)
commit88b045077a1462a47503137fd4ca0c31772819ca
treef697b8b9459621e70c53ac303ef81aa25b408b36
parente32ee7fa54e3172e6413cefaaee9222a3f521617
drm/radeon: Fix sparc regression in r300_scratch()

Commit b4fe945405e477cded91772b4fec854705443dd5 ("drm/radeon: Fix
memory allocation failures in the preKMS command stream checking.")
added a regression in that it completely tossed the get_unaligned()
done by r300_scratch() which we added in commit
958a6f8ccb1964adc3eec84cf401c5baeb4fbca0 ("drm: radeon: Fix unaligned
access in r300_scratch().").

Put it back.

Signed-off-by: David S. Miller <davem@davemloft.net>
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r300_cmdbuf.c