mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 09:48:05 +02:00
nouveau: use get_property instead of of_get_property on pre-2.6.22 kernels.
This commit is contained in:
parent
6206091e5f
commit
3c998d8fcb
1 changed files with 6 additions and 2 deletions
|
|
@ -307,13 +307,17 @@ nouveau_card_init(struct drm_device *dev)
|
|||
DRM_MEMORYBARRIER();
|
||||
#endif
|
||||
|
||||
#if defined(__powerpc__)
|
||||
#if defined(__linux__) && defined(__powerpc__)
|
||||
/* if we have an OF card, copy vbios to RAMIN */
|
||||
dn = pci_device_to_OF_node(dev->pdev);
|
||||
if (dn)
|
||||
{
|
||||
int size;
|
||||
int size;
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22))
|
||||
const uint32_t *bios = of_get_property(dn, "NVDA,BMP", &size);
|
||||
#else
|
||||
const uint32_t *bios = get_property(dn, "NVDA,BMP", &size);
|
||||
#endif
|
||||
if (bios)
|
||||
{
|
||||
int i;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue