summaryrefslogtreecommitdiffstats
path: root/drivers/base
Commit message (Collapse)AuthorAgeFilesLines
* drivers/base: bail out if request_iomem_region failsSascha Hauer2012-06-271-0/+2
| | | | | | | When request_iomem_region fails we have to bail out instead of dereferencing res->start. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* print out resource_size_t correctlySascha Hauer2012-06-251-1/+2
| | | | | | | resource_size_t can be 32bit or 64bit depending on the architecture. Add a define for it to be able to printf a resource_size_t correctly Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* usb ehci: Add resource sizesSascha Hauer2012-05-311-0/+2
| | | | | | add_usb_ehci_device registers resources with size 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* complete: add device name complete support for devinfoJean-Christophe PLAGNIOL-VILLARD2012-04-301-0/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* devinfo: use accessor function for parametersSascha Hauer2012-04-241-1/+1
| | | | | | | Instead of directly accessing the struct member of struct param_d use the provided getter function. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* device: make singular devices possibleSascha Hauer2012-04-151-2/+5
| | | | | | | | | Currently all devices have an id meaning that all devicenames end with a number. This patch adds a DEVICE_ID_SINGLE to make it ppossible to register a device without an id assigned to it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* NET: Add support for ks8851_mllJan Weitzel2012-03-131-0/+33
| | | | | | | Add support for KS8851 16bit MLL chip from Micrel Inc. Signed-off-by: Jan Weitzel <j.weitzel@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* commands: remove struct command pointer from commandsSascha Hauer2012-02-271-1/+1
| | | | | | This is unused in all commands and thus can be removed. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devices: unregister children when unregistering a deviceSascha Hauer2012-02-171-5/+15
| | | | | | | | | | | | | | | | | We currently do not allow to unregister a device when it has children. However, the return value is seldomly checked. Also this breaks for hot pluggable devices like USB which we have to unregister when they disappear. The best way to fix this is to unregister our children and also the partitions on the unregistered device. We unregister the device first and then afterwards the children. We do this because for example network devices have a miidev as child which they unregister themselves. So we only have to unregister the children which are not cleaned up by the drivers, namely fs devices. Also, unregister all partitions on a disappearing device. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove the obsolet driver for the DM9000E ethernet deviceJuergen Beisert2011-12-141-1/+1
| | | | | | | | Support for the old DM9000E device is now part of the new dm9k.c driver. So, remove the old driver source and switch all users to the new driver. Signed-off-by: Juergen Beisert <jbe@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* implement resource management for platform devicesSascha Hauer2011-12-041-2/+27
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: switch to generic memory banksSascha Hauer2011-09-231-15/+0
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/base: fix wrong variable typeSascha Hauer2011-09-231-1/+1
| | | | | | | | Introduced with commit: 808ec31 resource: introduce add_generic_device_res to add multiple resource Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* resource: introduce add_generic_device_res to add multiple resourceJean-Christophe PLAGNIOL-VILLARD2011-09-201-32/+35
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* devinfo: beautify outputSascha Hauer2011-08-171-13/+14
| | | | | | | Files associated to a device showed up in a long list. Instead, print them in seperate lines and also show offset/size information Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* drivers/base: initialize active listSascha Hauer2011-08-151-0/+1
| | | | | | | Otherwise, when a non active device is unregistered, we call list_del on an unitialized list which oopses. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* arm: introduce arm_add_mem_device to register dram deviceJean-Christophe PLAGNIOL-VILLARD2011-08-011-0/+15
| | | | | | this will automaticaly register the device to armlinux_add_dram Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* driver: remove map_baseJean-Christophe PLAGNIOL-VILLARD2011-08-011-20/+0
| | | | | | | as now all the drivers and board have been switch to resource whe can drop map_base and size from device_d Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* resource: introduce add_usb_ehci_device to register echi deviceJean-Christophe PLAGNIOL-VILLARD2011-07-291-0/+21
| | | | | | | | | pass the hccr and hcor register base via resource instroduce add_generic_usb_echi_device with hccr = base + 0x100 and hcor = base + 0x140 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* dm9000: introduce add_dm9000_device to register dm9000 deviceJean-Christophe PLAGNIOL-VILLARD2011-07-291-4/+53
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* devinfo: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-291-3/+13
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* generic_memmap_ro/rw: switch to resourceJean-Christophe PLAGNIOL-VILLARD2011-07-291-2/+2
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Merge branch 'pu' into nextSascha Hauer2011-07-291-2/+2
|
* resource: introduce add_generic_device to register simple deviceJean-Christophe PLAGNIOL-VILLARD2011-07-211-6/+10
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers: move resource generic management to driver/base/resource.cJean-Christophe PLAGNIOL-VILLARD2011-07-212-0/+47
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* drivers/bus: move to drivers/baseJean-Christophe PLAGNIOL-VILLARD2011-07-213-0/+478
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>