summaryrefslogtreecommitdiffstats
path: root/drivers/base/resource.c
Commit message (Collapse)AuthorAgeFilesLines
* drivers: Introduce dev_set_name()Andrey Smirnov2018-10-181-1/+1
| | | | | | | | Introduce dev_set_name() in order to hide implementation details of setting device's name so it'd be easier to change it. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* net: dm9k: Fix resource sizes in add_dm9000_deviceSascha Hauer2013-12-181-3/+3
| | | | | | | | | The dm9000 needs a resource for an index register and one for the data register. Both should have a size of the access width, and not two times the access width. The current code is probably a leftover when the dm9000 had only one resource. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* device: Add functions to add resourcesSascha Hauer2013-11-271-13/+47
| | | | | | | | | We currently have functions to add a device based on function parameters. This adds the corresponding functions to add resources to a device without registering the device itself. This is useful to manipulate devices before registering them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-041-1/+1
| | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-171-4/+0
| | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/resource-size'Sascha Hauer2012-07-021-7/+7
|\ | | | | | | | | | | Conflicts: drivers/base/resource.c fs/fs.c
| * resource: store 'end' instead of 'size' in struct resourceSascha Hauer2012-07-011-7/+7
| | | | | | | | | | | | | | | | | | | | Storing the size instead of the resource end in struct resource was a mistake. 'size' ranges from 0 to UINT[32|64]_MAX + 1 which obviously leads to problems. 'end' on the other hand will never exceed UINT[32|64]_MAX. Also this way we can express a iomem region covering the whole address space. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | ehci: Fix resource sizeSascha Hauer2012-07-021-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | We now have a resource size for the ehci hccr register space. This was assumed to be 0x40 in size. On OMAP though it is only 0x10 and then the hccr resource conflicts with the hcor resource which results in a non working ehci port on beagle and panda boards. This patch adds a nonintrusive workaround, it limits the hccr resource to 0x10, which then also works on OMAP. Later we should drop the multiple resources for the ehci port and make the resource as specified in the datasheets. This is broken since: commit 08845e41fba2b16dd3050b6b910c615e1bb8e57c Author: Sascha Hauer <s.hauer@pengutronix.de> Date: Wed May 23 12:54:24 2012 +0200 usb ehci: Add resource sizes add_usb_ehci_device registers resources with size 0. Fix this. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> 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>
* 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>
* 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>
* 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>
* 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>
* 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>
* 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-211-0/+46
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>