From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ipmail07.adl2.internode.on.net (ipmail07.adl2.internode.on.net [150.101.137.131]) by ozlabs.org (Postfix) with ESMTP id C885CB7D8B for ; Wed, 16 Jun 2010 08:19:50 +1000 (EST) Message-ID: <57F24E98919C4D22A784127E6CF1C9DA@kos> From: "Chris Alfred" To: "linuxppc-dev" Subject: Porting a driver to powerpc using FDT Date: Wed, 16 Jun 2010 08:19:50 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , I am trying to port a DSA (Distributed Switch Architecture) driver for the Micrel KS8995M managed switch connected to a MPC5200. There is an SPI interface and MII interface managed by the DSA driver. I can't understand how probe gets called when the flatted device tree (FDT) system is used, and how to bind such a driver using the FDT (if you have to at all). The DSA driver is initialised via: // net/dsa/dsa.c static struct platform_driver dsa_driver = { .probe = dsa_probe, .remove = dsa_remove, .shutdown = dsa_shutdown, .driver = { .name = "dsa", .owner = THIS_MODULE, }, }; static int __init dsa_init_module(void) { return platform_driver_register(&dsa_driver); } dsa_init_module is being called; but how do I get the system to call .probe? Chris