From: Aurelien Jarno Date: Fri, 26 Sep 2008 20:27:11 +0000 (+0200) Subject: [SSB] Initialise dma_mask for SSB_BUSTYPE_SSB devices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac82da3381fc663dbda31612a0bff60bc41676a3;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [SSB] Initialise dma_mask for SSB_BUSTYPE_SSB devices For SSB_BUSTYPE_SSB type devices, we need to initialize dma_mask using coherent_dma_mask so that calls to dma_set_mask() succeed. It fixes the regression on the b44 driver introduced by commit f225763a7d6c92c4932dbd528437997078496fcc Signed-off-by: Aurelien Jarno Signed-off-by: Ralf Baechle --- diff --git a/drivers/ssb/main.c b/drivers/ssb/main.c index 87ab2443e66..0ffabf5c0b6 100644 --- a/drivers/ssb/main.c +++ b/drivers/ssb/main.c @@ -471,6 +471,7 @@ static int ssb_devices_register(struct ssb_bus *bus) #endif break; case SSB_BUSTYPE_SSB: + dev->dma_mask = &dev->coherent_dma_mask; break; }