Return-Path: MIME-Version: 1.0 In-Reply-To: <1420775239-24745-1-git-send-email-gigi.joseph@ti.com> References: <1420775239-24745-1-git-send-email-gigi.joseph@ti.com> Date: Fri, 9 Jan 2015 09:34:36 +0530 Message-ID: Subject: Re: [PATCH 3/6] btwilink: add minimal device tree support From: Varka Bhadram To: Gigi Joseph Cc: Marcel Holtmann , Gustavo Padovan , Johan Hedberg , Grant Likely , Rob Herring , linux-bluetooth@vger.kernel.org, "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , Gigi Joseph , Eyal Reizer , bvijay Content-Type: text/plain; charset=UTF-8 List-ID: Hi, On Fri, Jan 9, 2015 at 9:17 AM, Gigi Joseph wrote: > Add minimal device tree support to the btwilink driver that is used > for binding bluetooth with the ti-st shared transport driver. > > Signed-off-by: Eyal Reizer > Signed-off-by: bvijay > Signed-off-by: Gigi Joseph > --- > drivers/bluetooth/btwilink.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/bluetooth/btwilink.c b/drivers/bluetooth/btwilink.c > index 55c135b..95adec3 100644 > --- a/drivers/bluetooth/btwilink.c > +++ b/drivers/bluetooth/btwilink.c > @@ -30,6 +30,7 @@ > > #include > #include > +#include > > /* Bluetooth Driver Version */ > #define VERSION "1.0" > @@ -286,6 +287,14 @@ static int ti_st_send_frame(struct hci_dev *hdev, struct sk_buff *skb) > return 0; > } > > +static const struct of_device_id btwilink_of_match[] = { > +{ > + .compatible = "btwilink", compatible property include the manufacturer name also... compatible="," > + }, > + {} > +}; > +MODULE_DEVICE_TABLE(of, btwilink_of_match); > + > static int bt_ti_probe(struct platform_device *pdev) > { > static struct ti_st *hst; > @@ -349,6 +358,8 @@ static struct platform_driver btwilink_driver = { > .remove = bt_ti_remove, > .driver = { > .name = "btwilink", > + .owner = THIS_MODULE, No need to update this field. It will be updated by driver core. > + .of_match_table = of_match_ptr(btwilink_of_match), > }, > }; > > -- > 1.9.1 > > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Thanks and Regards, Varka Bhadram.