]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc/5200: Stop using device_type and port-number properties
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 3 Feb 2009 19:30:25 +0000 (12:30 -0700)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 3 Feb 2009 19:30:25 +0000 (12:30 -0700)
commit3b5ebf8e1ac88babf60772d54bc81b180b5f53b0
tree4325e07d1036ecda66d1f3c2e5fb5c7bbaf5341f
parentb1792e367053968f2ddb48bc911d314143ce6242
powerpc/5200: Stop using device_type and port-number properties

There is no reason for the PSC UART driver or the Ethernet driver
to require a device_type property.  The compatible value is sufficient
to uniquely identify the device.  Remove it from the driver.

The whole 'port-number' scheme for assigning numbers to PSC uarts was
always rather half baked and just adds complexity.  Remove it from the
driver.  After this patch is applied, PSC UART numbers are simply
assigned from the order they are found in the device tree (just like
all the other devices).  Userspace can query sysfs to determine what
ttyPSC number is assigned to each PSC instance.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Reviewed-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/net/fec_mpc52xx.c
drivers/serial/mpc52xx_uart.c