diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /arch/parisc/kernel/drivers.c | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'arch/parisc/kernel/drivers.c')
| -rw-r--r-- | arch/parisc/kernel/drivers.c | 34 | 
1 files changed, 14 insertions, 20 deletions
| diff --git a/arch/parisc/kernel/drivers.c b/arch/parisc/kernel/drivers.c index 3b8507f71050..5eb979d04b90 100644 --- a/arch/parisc/kernel/drivers.c +++ b/arch/parisc/kernel/drivers.c @@ -154,17 +154,14 @@ int register_parisc_driver(struct parisc_driver *driver)  {  	/* FIXME: we need this because apparently the sti  	 * driver can be registered twice */ -	if(driver->drv.name) { -		printk(KERN_WARNING  -		       "BUG: skipping previously registered driver %s\n", -		       driver->name); +	if (driver->drv.name) { +		pr_warn("BUG: skipping previously registered driver %s\n", +			driver->name);  		return 1;  	}  	if (!driver->probe) { -		printk(KERN_WARNING  -		       "BUG: driver %s has no probe routine\n", -		       driver->name); +		pr_warn("BUG: driver %s has no probe routine\n", driver->name);  		return 1;  	} @@ -268,7 +265,7 @@ static struct parisc_device *find_device_by_addr(unsigned long hpa)   * Walks up the device tree looking for a device of the specified type.   * If it finds it, it returns it.  If not, it returns NULL.   */ -const struct parisc_device * __init +const struct parisc_device *  find_pa_parent_type(const struct parisc_device *padev, int type)  {  	const struct device *dev = &padev->dev; @@ -448,7 +445,8 @@ static int match_by_id(struct device * dev, void * data)   * Checks all the children of @parent for a matching @id.  If none   * found, it allocates a new device and returns it.   */ -static struct parisc_device * alloc_tree_node(struct device *parent, char id) +static struct parisc_device * __init alloc_tree_node( +			struct device *parent, char id)  {  	struct match_id_data d = {  		.id = id, @@ -490,12 +488,9 @@ alloc_pa_dev(unsigned long hpa, struct hardware_path *mod_path)  	dev = create_parisc_device(mod_path);  	if (dev->id.hw_type != HPHW_FAULTY) { -		printk(KERN_ERR "Two devices have hardware path [%s].  " -				"IODC data for second device: " -				"%02x%02x%02x%02x%02x%02x\n" -				"Rearranging GSC cards sometimes helps\n", -			parisc_pathname(dev), iodc_data[0], iodc_data[1], -			iodc_data[3], iodc_data[4], iodc_data[5], iodc_data[6]); +		pr_err("Two devices have hardware path [%s].  IODC data for second device: %7phN\n" +		       "Rearranging GSC cards sometimes helps\n", +			parisc_pathname(dev), iodc_data);  		return NULL;  	} @@ -527,8 +522,7 @@ alloc_pa_dev(unsigned long hpa, struct hardware_path *mod_path)  	 * the keyboard controller  	 */  	if ((hpa & 0xfff) == 0 && insert_resource(&iomem_resource, &dev->hpa)) -		printk("Unable to claim HPA %lx for device %s\n", -				hpa, name); +		pr_warn("Unable to claim HPA %lx for device %s\n", hpa, name);  	return dev;  } @@ -825,8 +819,8 @@ static void walk_lower_bus(struct parisc_device *dev)   * devices which are not physically connected (such as extra serial &   * keyboard ports).  This problem is not yet solved.   */ -static void walk_native_bus(unsigned long io_io_low, unsigned long io_io_high, -                            struct device *parent) +static void __init walk_native_bus(unsigned long io_io_low, +	unsigned long io_io_high, struct device *parent)  {  	int i, devices_found = 0;  	unsigned long hpa = io_io_low; @@ -874,7 +868,7 @@ static void print_parisc_device(struct parisc_device *dev)  	static int count;  	print_pa_hwpath(dev, hw_path); -	printk(KERN_INFO "%d. %s at 0x%px [%s] { %d, 0x%x, 0x%.3x, 0x%.5x }", +	pr_info("%d. %s at 0x%px [%s] { %d, 0x%x, 0x%.3x, 0x%.5x }",  		++count, dev->name, (void*) dev->hpa.start, hw_path, dev->id.hw_type,  		dev->id.hversion_rev, dev->id.hversion, dev->id.sversion); |