Revert "drm/i915: fix infinite recursion on unbind due to ilk vt-d w/a"
[pandora-kernel.git] / drivers / gpu / drm / drm_dma.c
index 13f1537..cfb4e33 100644 (file)
@@ -33,6 +33,7 @@
  * OTHER DEALINGS IN THE SOFTWARE.
  */
 
+#include <linux/export.h>
 #include "drmP.h"
 
 /**
@@ -47,12 +48,10 @@ int drm_dma_setup(struct drm_device *dev)
 {
        int i;
 
-       dev->dma = kmalloc(sizeof(*dev->dma), GFP_KERNEL);
+       dev->dma = kzalloc(sizeof(*dev->dma), GFP_KERNEL);
        if (!dev->dma)
                return -ENOMEM;
 
-       memset(dev->dma, 0, sizeof(*dev->dma));
-
        for (i = 0; i <= DRM_MAX_ORDER; i++)
                memset(&dev->dma->bufs[i], 0, sizeof(dev->dma->bufs[0]));