Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754834AbbBQXNZ (ORCPT ); Tue, 17 Feb 2015 18:13:25 -0500 Received: from mail-lb0-f180.google.com ([209.85.217.180]:35001 "EHLO mail-lb0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752862AbbBQXNU (ORCPT ); Tue, 17 Feb 2015 18:13:20 -0500 MIME-Version: 1.0 In-Reply-To: <54DD77BA.5020808@codeaurora.org> References: <1422060853-1067-1-git-send-email-bjorn.andersson@sonymobile.com> <1422060853-1067-2-git-send-email-bjorn.andersson@sonymobile.com> <54DD77BA.5020808@codeaurora.org> Date: Tue, 17 Feb 2015 15:13:19 -0800 Message-ID: Subject: Re: [PATCH v2 2/2] leds: add Qualcomm PM8941 WLED driver From: Bjorn Andersson To: Stephen Boyd Cc: Bjorn Andersson , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Bryan Wu , Richard Purdie , Grant Likely , Courtney Cavin , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Linux LED Subsystem , linux-arm-msm 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: 1223 Lines: 44 On Thu, Feb 12, 2015 at 8:04 PM, Stephen Boyd wrote: [..] >> + >> +static int pm8941_wled_remove(struct platform_device *pdev) >> +{ >> + struct pm8941_wled *wled; >> + >> + wled = platform_get_drvdata(pdev); >> + led_classdev_unregister(&wled->cdev); > > Would be nice to have a devm for this one too. > I agree, will hack one up. >> + >> + return 0; >> +} >> + >> +static const struct of_device_id pm8941_wled_match_table[] = { >> + { .compatible = "qcom,pm8941-wled" }, >> + {} >> +}; >> +MODULE_DEVICE_TABLE(of, pm8941_wled_match_table); >> + >> +static struct platform_driver pm8941_wled_driver = { >> + .probe = pm8941_wled_probe, >> + .remove = pm8941_wled_remove, >> + .driver = { >> + .name = "pm8941-wled", >> + .owner = THIS_MODULE, > > THIS_MODULE should be removed. > Right, we've had this patch in purgatory for too long time... Will update. Regards, Bjorn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/