Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751858AbdF1O4Q (ORCPT ); Wed, 28 Jun 2017 10:56:16 -0400 Received: from mail-pf0-f181.google.com ([209.85.192.181]:34373 "EHLO mail-pf0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751752AbdF1O4F (ORCPT ); Wed, 28 Jun 2017 10:56:05 -0400 MIME-Version: 1.0 In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6DD002C93C@AcuExch.aculab.com> References: <1498587806-24781-1-git-send-email-alcooperx@gmail.com> <1498587806-24781-5-git-send-email-alcooperx@gmail.com> <063D6719AE5E284EB5DD2968C1650D6DD002C93C@AcuExch.aculab.com> From: Al Cooper Date: Wed, 28 Jun 2017 10:56:03 -0400 Message-ID: Subject: Re: [PATCH 4/8] usb: bdc: Small code cleanup To: David Laight Cc: Al Cooper , "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Felipe Balbi , yuan linyu , Florian Fainelli , "open list:USB SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "bcm-kernel-feedback-list@broadcom.com" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 602 Lines: 17 On Wed, Jun 28, 2017 at 4:47 AM, David Laight wrote: >> >> temp = bdc_readl(bdc->regs, BDC_BDCSC); >> if ((temp & BDC_P64) && >> !dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) { >> - dev_dbg(bdc->dev, "Using 64-bit address\n"); >> + dev_dbg(dev, "Using 64-bit address\n"); >> } else { >> - ret = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); >> + ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); > > That just wrong... > Or was wrong before. Why is this wrong? Al