soc/amd/common: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Change-Id: Iad8b7c705d5053700850065f90314444904b5b54 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76289 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
This commit is contained in:
		
				
					committed by
					
						
						Kyösti Mälkki
					
				
			
			
				
	
			
			
			
						parent
						
							6df8ba45e0
						
					
				
				
					commit
					fdc1b541ae
				
			@@ -6,7 +6,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static void emmc_read_resources(struct device *dev)
 | 
					static void emmc_read_resources(struct device *dev)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
 | 
						mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static void emmc_enable(struct device *dev)
 | 
					static void emmc_enable(struct device *dev)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -121,7 +121,7 @@ void i2c_soc_init(void)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static void i2c_read_resources(struct device *dev)
 | 
					static void i2c_read_resources(struct device *dev)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
 | 
						mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct device_operations soc_amd_i2c_mmio_ops = {
 | 
					struct device_operations soc_amd_i2c_mmio_ops = {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -98,7 +98,7 @@ static void uart_enable(struct device *dev)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
static void uart_read_resources(struct device *dev)
 | 
					static void uart_read_resources(struct device *dev)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	mmio_resource_kb(dev, 0, dev->path.mmio.addr / KiB, 4);
 | 
						mmio_range(dev, 0, dev->path.mmio.addr, 4 * KiB);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
struct device_operations amd_uart_mmio_ops = {
 | 
					struct device_operations amd_uart_mmio_ops = {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user