Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753343AbbDMI1W (ORCPT ); Mon, 13 Apr 2015 04:27:22 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:36052 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751869AbbDMI1R (ORCPT ); Mon, 13 Apr 2015 04:27:17 -0400 Date: Mon, 13 Apr 2015 13:57:05 +0530 From: Sudip Mukherjee To: Greg KH Cc: Dan Carpenter , linux-kernel@vger.kernel.org Subject: Re: [PATCH WIP] parport: add device model Message-ID: <20150413082705.GA6067@sudip-PC> References: <1428676238-17141-1-git-send-email-sudipm.mukherjee@gmail.com> <20150410144955.GJ16501@mwanda> <20150411052651.GC3496@sudip-PC> <20150411072716.GD10063@kroah.com> <20150411081134.GA6092@sudip-PC> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150411081134.GA6092@sudip-PC> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1258 Lines: 36 On Sat, Apr 11, 2015 at 01:41:34PM +0530, Sudip Mukherjee wrote: > On Sat, Apr 11, 2015 at 09:27:16AM +0200, Greg KH wrote: > > On Sat, Apr 11, 2015 at 10:56:51AM +0530, Sudip Mukherjee wrote: > well, as of now one question. I am planning like this : > > sys > _______________|_____________ > | | | | | > bus > ________|______ > | > parport > _______|_____ > | | > devices drivers- lp, ppdev, panel etc.. > _____|________ > | | > parport0 parport1 > > > I can understand that drivers need to be binded to one device, so > suppose ppdev wants to use parport0, how that binding will be done? > do i need mark the driver in the parport->ddev.driver ? > I think that should have been automatically done if i have a probe > function for the bus... > somehow I am missing this step in the other drivers codes. i think i got the missing link, let me try first. regards sudip -- 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/