From: Shani M. <sha...@wi...> - 2007-06-14 11:24:16
|
Replacing memset(<addr>,0,PAGE_SIZE) with clear_page(<addr>) in drivers/char/drm/i830_dma.c Signed-off-by: Shani Moideen <sha...@wi...> ---- diff --git a/drivers/char/drm/i830_dma.c b/drivers/char/drm/i830_dma.c index 3314a9f..2b6632d 100644 --- a/drivers/char/drm/i830_dma.c +++ b/drivers/char/drm/i830_dma.c @@ -433,7 +433,7 @@ static int i830_dma_initialize(drm_device_t * dev, DRM_ERROR("Can not allocate hardware status page\n"); return -ENOMEM; } - memset(dev_priv->hw_status_page, 0, PAGE_SIZE); + clear_page(dev_priv->hw_status_page); DRM_DEBUG("hw status page @ %p\n", dev_priv->hw_status_page); I830_WRITE(0x02080, dev_priv->dma_status_page); -- Shani |